feat(chart): add registry secret for pulling from private registries
This commit is contained in:
parent
d09514d760
commit
e2d974596d
3 changed files with 11 additions and 3 deletions
|
|
@ -11,9 +11,9 @@ spec:
|
||||||
ttlSecondsAfterFinished: 300
|
ttlSecondsAfterFinished: 300
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.image.pullSecretBase64 }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 12 }}
|
- name: {{ include "wsj-standup.fullname" . }}-registry-credentials
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
|
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
|
||||||
containers:
|
containers:
|
||||||
|
|
|
||||||
7
deploy/chart/wsj-standup/templates/registry-secret.yaml
Normal file
7
deploy/chart/wsj-standup/templates/registry-secret.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ include "wsj-standup.fullname" . }}-registry-credentials
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: {{ .Values.image.pullSecretBase64 }}
|
||||||
|
|
@ -3,8 +3,9 @@ image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
|
pullSecretBase64: null
|
||||||
|
|
||||||
|
|
||||||
imagePullSecrets: []
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue