Skip to content

Commit 65300ac

Browse files
committed
Adding example file
1 parent ed8e81c commit 65300ac

File tree

2 files changed

+16
-1
lines changed
  • charts

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

charts/sourcegraph/examples/private-image-registry/override.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ alpine:
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
2828

29-
# Allow Executors to use the same registry credentials to pull the needed images for Batch Changes and Autoindexing
29+
# Allow Executors to reuse the same registry credentials to pull the needed images for Batch Changes and Auto-indexing
3030
executor:
3131
extraEnv:
3232
- name: KUBERNETES_IMAGE_PULL_SECRETS

0 commit comments

Comments
 (0)