Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to provide container registry credentials in air-gapped environment #7256

Merged
merged 4 commits into from
Nov 14, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 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 All @@ -53,6 +56,7 @@ The operator expects container images to be located at specific repositories in
* +my.registry/kibana/kibana:{version}+
* +my.registry/apm/apm-server:{version}+


[float]
thbkrkr marked this conversation as resolved.
Show resolved Hide resolved
[id="{p}-container-repository-override"]
== Use a global container repository
Expand Down