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
|
||||
template:
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
{{- with .Values.image.pullSecretBase64 }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
- name: {{ include "wsj-standup.fullname" . }}-registry-credentials
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
|
||||
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
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
pullSecretBase64: null
|
||||
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
|
|
|
|||
Reference in a new issue