Skip to content

Commit f5f6c93

Browse files
committed
stricter securitycontext
1 parent ae67d51 commit f5f6c93

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

charts/prometheus-federator/values.yaml

Lines changed: 14 additions & 12 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
194194
# capabilities:
195195
# drop:
196196
# - ALL
197197
# privileged: false
198-
# readOnlyRootFilesystem: true
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:
233235
# - ALL
234-
# privileged: false
235-
# readOnlyRootFilesystem: true
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)