Skip to content

Update security-context with readOnlyRootFilesystem: true to Mount root filesystem as read-only in Shared Resources containers #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/sharedresource/node_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
readOnlyRootFilesystem: true
env:
- name: KUBE_NODE_NAME
valueFrom:
Expand Down Expand Up @@ -74,6 +75,7 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
readOnlyRootFilesystem: true
ports:
- containerPort: 9898
name: healthz
Expand Down
2 changes: 2 additions & 0 deletions config/sharedresource/webhook_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
value: ""
- name: RESERVED_SHARED_SECRET_NAMES
value: "openshift-etc-pki-entitlement: openshift-config-managed:etc-pki-entitlement"
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: trusted-ca-bundle
mountPath: /etc/pki/tls/certs/
Expand Down