Skip to content

Commit

Permalink
add seccomp of RuntimeDefault on mcad manager pod
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss committed May 6, 2024
1 parent cb8836d commit dc0ad47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ spec:
# - linux
securityContext:
runAsNonRoot: true
# TODO(user): For common cases that do not require escalating privileges
# it is recommended to ensure that all your Pods/Containers are restrictive.
# More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
# Please uncomment the following code if your project does NOT have to work on old Kubernetes
# versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
# seccompProfile:
# type: RuntimeDefault
seccompProfile:
type: RuntimeDefault
containers:
- command:
- /manager
Expand Down
4 changes: 4 additions & 0 deletions deployment/mcad-controller/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: {{ .Values.serviceAccount }}
terminationGracePeriodSeconds: 10
priorityClassName: system-node-critical
Expand Down Expand Up @@ -99,6 +101,8 @@ spec:
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: {{ .Values.serviceAccount }}
terminationGracePeriodSeconds: 10
priorityClassName: system-node-critical
Expand Down

0 comments on commit dc0ad47

Please sign in to comment.