Skip to content

Commit

Permalink
feat(helm): set readOnlyRootFilesystem on CNI
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
  • Loading branch information
michaelbeaumont committed Apr 24, 2023
1 parent 579c962 commit a14ec59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
4 changes: 4 additions & 0 deletions deployments/charts/kuma/templates/cni-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ spec:
name: host-var-run
mountPropagation: Bidirectional
{{- end }}
- name: tmp
mountPath: /tmp
volumes:
# Used to install CNI.
- name: cni-bin-dir
Expand All @@ -159,4 +161,6 @@ spec:
path: /proc
name: host-proc
{{- end }}
- name: tmp
emptyDir: {}
{{- end }}
24 changes: 5 additions & 19 deletions deployments/charts/kuma/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,27 +334,13 @@ cni:

# -- Security context at the pod level for cni
podSecurityContext: {}
# # The values below are examples. More values can be added as needed, since the field resolves as free form.
# runAsNonRoot: true
# runAsUser: 1000
# runAsGroup: 3000
# fsGroup: 2000
# fsGroupChangePolicy:
# # to support additional pod level securityContext parameters, please check:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podsecuritycontext-v1-core

# -- Security context at the container level for cni
containerSecurityContext: {} # for overlapping securityContext between pod and container, the container's value take precedence
# # The values below are examples. More values can be added as needed, since the field resolves as free form.
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - all
# readOnlyRootFilesystem: true
# privileged: false
# runAsNonRoot: true
# runAsUser: 1000
# runAsGroup: 3000
# # to support additional container level securityContext parameters, please check:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#securitycontext-v1-core
containerSecurityContext:
readOnlyRootFilesystem: true
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0

dataPlane:
image:
Expand Down

0 comments on commit a14ec59

Please sign in to comment.