Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Deploy and manage/
  3. Deploy/
  4. Elastic Cloud on Kubernetes/
  5. Deploy an orchestrator

Running ECK in air-gapped environments

The ECK operator can be run in an air-gapped environment without access to the open internet when configured to avoid pulling container images fromdocker.elastic.co.

By default ECK does not require you to specify the container image for each Elastic Stack application you deploy.

apiVersion: elasticsearch.k8s.elastic.co/v1kind: Elasticsearchmetadata:  name: quickstartspec:  version: 9.3.0  # image: docker.elastic.co/elasticsearch/elasticsearch:9.3.0  nodeSets:  - name: default    count: 1  # podTemplate:  #   spec:  #     imagePullSecrets:  #     - name: private-registry-credentials-secret
  1. The ECK operator will set this value by default. You can explicitly set it to your mirrored container image when running in an air-gapped environment
  2. You can provide credentials to your private container registry by setting theimagePullSecrets field through thespec.podTemplate section of your Elastic resource specification, checkhow to customize the Elastic resources Pods andhow to setup a Secret containing your registry credentials.

ECK will automatically set the correct container image for each application. When running in an air-gapped or offline environment you will have to mirror the official Elastic container images in a private container image registry. To make use of your mirrored images you can either set the image for each application explicitly as shown in the preceding example or more conveniently override the default container registry as explained in the next section.

To deploy the ECK operator in an air-gapped environment, you first have to mirror the operator image itself fromdocker.elastic.co to a private container registry, for examplemy.registry.

Once the ECK operator image is copied internally, replace the original image name with the private name of the image in theoperator manifests. For example:

Before:

docker.elastic.co/eck/eck-operator:3.3.0

After:

my.registry/eck/eck-operator:3.3.0

When usingHelm charts, replace theimage.repository Helm value with, for example,my.registry/eck/eck-operator.

When creating custom resources (Elasticsearch, Kibana, APM Server, Beats, Elastic Agent, Elastic Maps Server, Logstash, AutoOps Agent Policy and Package Registry), the operator defaults to using container images pulled from thedocker.elastic.co registry. If you are in an environment where external network access is restricted, you can configure the operator to use a different default container registry by starting the operator with the--container-registry command-line flag. CheckConfigure ECK for more information on how to configure the operator using command-line flags and environment variables.

The operator expects container images to be located at specific repositories in the default container registry. Make sure that your container images are stored in the right repositories and are tagged correctly with the Stack version number. For example, if your private registry ismy.registry and you wish to deploy components from Stack version 9.3.0, the following image names should exist:

  • my.registry/elasticsearch/elasticsearch:9.3.0
  • my.registry/kibana/kibana:9.3.0
  • my.registry/apm/apm-server:9.3.0

If you cannot follow the default Elastic image repositories naming scheme, you can configure the operator to use a different container repository by starting the operator with the--container-repository command-line flag. CheckConfigure ECK for more information on how to configure the operator using command-line flags and environment variables.

For example, if your private registry ismy.registry and all Elastic images are located under theelastic repository, the following image names should exist:

  • my.registry/elastic/elasticsearch:9.3.0
  • my.registry/elastic/kibana:9.3.0
  • my.registry/elastic/apm-server:9.3.0

Theeck-diagnostics tool optionally runs diagnostics for Elastic Stack applications in a separate container that is deployed into the Kubernetes cluster.

In air-gapped environments with no access to thedocker.elastic.co registry, you should copy the latest support-diagnostics container image to your internal image registry and then run the tool with the additional flag--diagnostic-image <custom-support-diagnostics-image-name>. To find out which support diagnostics container image matches your version of eck-diagnostics, run the tool once without arguments and it will print the default image in use.


[8]ページ先頭

©2009-2026 Movatter.jp