Merge pull request #41 from Telecominfraproject/fix/k8s-security-context

Fix: add securityContext to make mounted volumes accessible by the application user
This commit is contained in:
Dmitry Dunaev
2021-08-04 18:12:40 +03:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -83,6 +83,11 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
imagePullSecrets:
{{- range $image, $imageValue := .Values.images }}
{{- if $imageValue.regcred }}

View File

@@ -109,6 +109,9 @@ resources: {}
# cpu: 100m
# memory: 128Mi
securityContext:
fsGroup: 101
nodeSelector: {}
tolerations: []