diff --git a/status/templates/deployment.yaml b/status/templates/deployment.yaml index 0004863..d094f0f 100644 --- a/status/templates/deployment.yaml +++ b/status/templates/deployment.yaml @@ -34,7 +34,7 @@ spec: containers: - name: {{ .Chart.Name }} securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} + runAsUser: {{ .Values.runAsUser }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} lifecycle: diff --git a/status/values.yaml b/status/values.yaml index 7f24e2d..84732ec 100644 --- a/status/values.yaml +++ b/status/values.yaml @@ -26,13 +26,7 @@ podAnnotations: {} podSecurityContext: {} # fsGroup: 2000 # -- Settings for security context of the container -securityContext: - runAsUser: 1001 - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true +runAsUser: 1001 service: # -- Kubernetes Service type type: ClusterIP