File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
sourcegraph-executor/k8s/examples/private-image-registry
sourcegraph/examples/private-image-registry Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ # # Override file demonstrating the use of a private docker image registry and custom image names
2+
3+ sourcegraph :
4+ image :
5+ repository : custom-repo.ecr.us-east-1.amazonaws.com/sourcegraph
6+
7+ # Registry credentials: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
8+ imagePullSecrets :
9+ - name : regcred # Pre-existing secret that contains the credentials needed to pull from the image registry
10+
11+ # Allow Executors to reuse the same registry credentials to pull the needed images for Batch Changes and Auto-indexing
12+ executor :
13+ extraEnv :
14+ - name : KUBERNETES_IMAGE_PULL_SECRETS
15+ value : regcred
Original file line number Diff line number Diff line change @@ -25,3 +25,9 @@ alpine:
2525 image :
2626 name : alpine # Use a custom name instead of the Sourcegraph name - i.e. alpine-3.12
2727 tag : 3.12 # Use a custom tag instead of the default - i.e. 3.35.1
28+
29+ # Allow Executors to reuse the same registry credentials to pull the needed images for Batch Changes and Auto-indexing
30+ executor :
31+ extraEnv :
32+ - name : KUBERNETES_IMAGE_PULL_SECRETS
33+ value : regcred
You can’t perform that action at this time.
0 commit comments