Skip to content

Commit

Permalink
Enable seccomp on containers (CrunchyData#122)
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
benjaminjb authored and andrewlecuyer committed Jun 6, 2022
1 parent 6e91c1d commit f8a0eb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/install/templates/manager-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2 changes: 2 additions & 0 deletions helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2 changes: 2 additions & 0 deletions kustomize/install/manager/manager-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: postgres-operator-upgrade
2 changes: 2 additions & 0 deletions kustomize/install/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: pgo

0 comments on commit f8a0eb4

Please sign in to comment.