Fix securityContext for jenkins (#342)
This commit is contained in:
parent
a6c2005e47
commit
e73f6de424
|
|
@ -109,6 +109,10 @@ spec:
|
||||||
{{- with .Values.jenkins.volumes }}
|
{{- with .Values.jenkins.volumes }}
|
||||||
volumes: {{- toYaml . | nindent 4 }}
|
volumes: {{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.jenkins.securityContext}}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.jenkins.seedJobs }}
|
{{- with .Values.jenkins.seedJobs }}
|
||||||
seedJobs: {{- toYaml . | nindent 4 }}
|
seedJobs: {{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,11 @@ jenkins:
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: jenkins-backup
|
claimName: jenkins-backup
|
||||||
|
|
||||||
|
# securityContext for pod
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
|
||||||
# http Jenkins service
|
# http Jenkins service
|
||||||
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details
|
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details
|
||||||
#service:
|
#service:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue