Skip to content

Commit

Permalink
Document how to provide container registry credentials in air-gapped …
Browse files Browse the repository at this point in the history
…environment (elastic#7256)

Co-authored-by: Thibault Richard <thb.krkr@gmail.com>
  • Loading branch information
2 people authored and robbavey committed Dec 20, 2023
1 parent a5cd487 commit 1ba097f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/operating-eck/air-gapped.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ spec:
nodeSets:
- name: default
count: 1
# podTemplate:
# spec:
# imagePullSecrets: <2>
# - 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 the `imagePullSecrets` field through the `spec.podTemplate` section of your Elastic resource specification, check <<{p}-customize-pods,how to customize the Elastic resources Pods>> and link:https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/[how 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.



[float]
[id="{p}-use-mirrored-operator-image"]
== Use a mirrored image of the ECK operator
Expand Down

0 comments on commit 1ba097f

Please sign in to comment.