Skip to content

Commit

Permalink
Merge pull request #74 from jeroen-nijssen/main
Browse files Browse the repository at this point in the history
Adding Image Pull Secrets
  • Loading branch information
blind-oracle authored Jul 18, 2024
2 parents 7a0069b + 5a25d48 commit f27004a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/k8s/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ spec:
labels:
{{- include "cortex-tenant.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down
5 changes: 5 additions & 0 deletions deploy/k8s/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ image:
pullPolicy: IfNotPresent
# -- Overrides the image tag (default is `.Chart.appVersion`)
tag: ""
# -- Optionally specify an array of imagePullSecrets
# Secrets must be manually created in the namespace.
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
# pullSecrets:
# - myRegistryKeySecretName

service:
# -- The type of service
Expand Down

0 comments on commit f27004a

Please sign in to comment.