Skip to content

Commit a9e6847

Browse files
committed
Add default securityContext into values.yaml so that kube-lint passes
Signed-off-by: Jirka Kremser <[email protected]>
1 parent 70519f7 commit a9e6847

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

charts/coredns/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ readinessProbe:
161161
failureThreshold: 5
162162
successThreshold: 1
163163

164+
# specify security configuration that will be applied to a container - https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#securitycontext-v1-core
165+
securityContext:
166+
runAsNonRoot: false
167+
readOnlyRootFilesystem: true
168+
164169
# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core
165170
# for example:
166171
# affinity:

0 commit comments

Comments
 (0)