Skip to content

Commit

Permalink
deploy: run all containers with read-only filesystem
Browse files Browse the repository at this point in the history
Prevent potential abuse of the container storage a little more, by
running all containers with a read-only filesystem.

Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Mar 5, 2024
1 parent 7eef960 commit b2c2295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
fieldPath: metadata.namespace
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /healthz
Expand Down
1 change: 1 addition & 0 deletions deploy/controller/setup-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ spec:
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
securityContext:
runAsNonRoot: true
serviceAccountName: csi-addons-controller-manager
Expand Down

0 comments on commit b2c2295

Please sign in to comment.