Skip to content

Commit 40bc06d

Browse files
committed
stricter securitycontext
1 parent ae67d51 commit 40bc06d

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

charts/prometheus-federator/values.yaml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,18 @@ helmProjectOperator:
189189
# memory: 100Mi
190190
# cpu: 100m
191191

192-
containerSecurityContext: { }
193-
# allowPrivilegeEscalation: false
192+
containerSecurityContext:
193+
allowPrivilegeEscalation: false
194+
privileged: false
194195
# capabilities:
195196
# drop:
196-
# - ALL
197-
# privileged: false
198-
# readOnlyRootFilesystem: true
197+
# - all
199198

200-
securityContext: { }
201-
# runAsGroup: 1000
202-
# runAsUser: 1000
199+
securityContext:
200+
readOnlyRootFilesystem: true
201+
runAsNonRoot: true
202+
runAsUser: 1000
203+
runAsGroup: 1000
203204
# supplementalGroups:
204205
# - 1000
205206

@@ -226,17 +227,18 @@ helmProjectOperator:
226227
# value: "value"
227228
# effect: "NoSchedule"
228229

229-
containerSecurityContext: { }
230-
# allowPrivilegeEscalation: false
230+
containerSecurityContext:
231+
allowPrivilegeEscalation: false
232+
privileged: false
231233
# capabilities:
232234
# drop:
233-
# - ALL
234-
# privileged: false
235-
# readOnlyRootFilesystem: true
235+
# - all
236236

237237
securityContext:
238-
runAsNonRoot: false
239-
runAsUser: 0
238+
readOnlyRootFilesystem: true
239+
runAsNonRoot: true
240+
runAsUser: 1000
241+
runAsGroup: 1000
240242

241243
resources: { }
242244
# limits:

0 commit comments

Comments
 (0)