Skip to content

Commit

Permalink
R/O root fs
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Apr 22, 2024
1 parent 27fb617 commit 4e7288b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/deployment.yaml.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ spec:
name: pull-secret
readOnly: true
{{ end }}
{{ if .NeedsPrivileged }}
securityContext:
readOnlyRootFilesystem: true
{{ if .NeedsPrivileged }}
privileged: true
{{ end }}
containers:
Expand All @@ -83,6 +84,8 @@ spec:
args:
- "/image-prefetcher"
- "sleep"
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: cri-socket-dir
hostPath:
Expand Down

0 comments on commit 4e7288b

Please sign in to comment.