Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit e918089

Browse files
authored
add seccomp of RuntimeDefault on mcad manager pod (#165)
1 parent cb8836d commit e918089

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Diff for: config/manager/manager.yaml

+2-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ spec:
4545
# - linux
4646
securityContext:
4747
runAsNonRoot: true
48-
# TODO(user): For common cases that do not require escalating privileges
49-
# it is recommended to ensure that all your Pods/Containers are restrictive.
50-
# More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
51-
# Please uncomment the following code if your project does NOT have to work on old Kubernetes
52-
# versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
53-
# seccompProfile:
54-
# type: RuntimeDefault
48+
seccompProfile:
49+
type: RuntimeDefault
5550
containers:
5651
- command:
5752
- /manager

Diff for: deployment/mcad-controller/templates/manager/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ spec:
1616
spec:
1717
securityContext:
1818
runAsNonRoot: true
19+
seccompProfile:
20+
type: RuntimeDefault
1921
serviceAccountName: {{ .Values.serviceAccount }}
2022
terminationGracePeriodSeconds: 10
2123
priorityClassName: system-node-critical
@@ -99,6 +101,8 @@ spec:
99101
spec:
100102
securityContext:
101103
runAsNonRoot: true
104+
seccompProfile:
105+
type: RuntimeDefault
102106
serviceAccountName: {{ .Values.serviceAccount }}
103107
terminationGracePeriodSeconds: 10
104108
priorityClassName: system-node-critical

0 commit comments

Comments
 (0)