File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ spec:
122122 name : metrics
123123 protocol : TCP
124124 {{- end }}
125+ {{- if .Values.resources.deployment.containerSecurityContext }}
126+ securityContext : {{ $.Values.resources.deployment.containerSecurityContext | toYaml | nindent 12 }}
127+ {{- end }}
125128 readinessProbe :
126129 httpGet :
127130 path : {{ .Values.env.IMGPROXY_PATH_PREFIX }}/health
Original file line number Diff line number Diff line change @@ -151,12 +151,23 @@ resources:
151151 # It is set to 0 by default.
152152 minReadySeconds : ~
153153
154- # A security context defines privilege and access control settings for the deployment.
154+ # A security context defines privilege and access control settings for the deployment pod .
155155 # Check available settings in the documentation by link:
156156 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
157157 securityContext : {}
158158 # allowPrivilegeEscalation: false
159159 # runAsNonRoot: true
160+
161+ # A container security context defines privilege and access control settings for the deployment container.
162+ # Check available settings in the documentation by link:
163+ # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
164+ containerSecurityContext : {}
165+ # capabilities:
166+ # drop:
167+ # - ALL
168+ # readOnlyRootFilesystem: true
169+ # allowPrivilegeEscalation: false
170+ # runAsNonRoot: true
160171
161172 # A custom amount of time (in seconds) to terminate the app after pre-stop hook is called,
162173 # or a TERM signal is received.
You can’t perform that action at this time.
0 commit comments