Skip to content

Commit

Permalink
Add default securityContext into values.yaml so that kube-lint passes
Browse files Browse the repository at this point in the history
Signed-off-by: Jirka Kremser <[email protected]>
  • Loading branch information
jkremser committed Sep 21, 2021
1 parent 70519f7 commit 1803df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ readinessProbe:
failureThreshold: 5
successThreshold: 1

# specify security configuration that will be applied to a container - https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#securitycontext-v1-core
securityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true

# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core
# for example:
# affinity:
Expand Down

0 comments on commit 1803df6

Please sign in to comment.