Skip to content

Commit a7d78ae

Browse files
authored
Enable seccomp on containers (CrunchyData#122)
As of Kubernetes v1.19, SecurityContext has a seccompProfile field that can be set to RuntimeDefault to limit syscalls. This PR adds that setting to the PGO containers. Issue [sc-11286]
1 parent 6e91c1d commit a7d78ae

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

helm/install/templates/manager-upgrade.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ spec:
3838
allowPrivilegeEscalation: false
3939
readOnlyRootFilesystem: true
4040
runAsNonRoot: true
41+
seccompProfile:
42+
type: RuntimeDefault

helm/install/templates/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ spec:
4444
allowPrivilegeEscalation: false
4545
readOnlyRootFilesystem: true
4646
runAsNonRoot: true
47+
seccompProfile:
48+
type: RuntimeDefault

kustomize/install/manager/manager-upgrade.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ spec:
3232
allowPrivilegeEscalation: false
3333
readOnlyRootFilesystem: true
3434
runAsNonRoot: true
35+
seccompProfile:
36+
type: RuntimeDefault
3537
serviceAccountName: postgres-operator-upgrade

kustomize/install/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ spec:
4646
allowPrivilegeEscalation: false
4747
readOnlyRootFilesystem: true
4848
runAsNonRoot: true
49+
seccompProfile:
50+
type: RuntimeDefault
4951
serviceAccountName: pgo

0 commit comments

Comments
 (0)