Skip to content

Commit 4b0bd81

Browse files
Merge pull request #300 from lunarwhite/rorfs
CM-674: Enable ReadOnly Root Filesystem for operator controller
2 parents f8f6048 + badccb7 commit 4b0bd81

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

bundle/manifests/cert-manager-operator.clusterserviceversion.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,15 +693,22 @@ spec:
693693
drop:
694694
- ALL
695695
privileged: false
696+
readOnlyRootFilesystem: true
696697
runAsNonRoot: true
697698
seccompProfile:
698699
type: RuntimeDefault
700+
volumeMounts:
701+
- mountPath: /tmp
702+
name: tmp
699703
securityContext:
700704
runAsNonRoot: true
701705
seccompProfile:
702706
type: RuntimeDefault
703707
serviceAccountName: cert-manager-operator-controller-manager
704708
terminationGracePeriodSeconds: 10
709+
volumes:
710+
- emptyDir: {}
711+
name: tmp
705712
permissions:
706713
- rules:
707714
- apiGroups:

config/manager/manager.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec:
105105
- 'ALL'
106106
privileged: false
107107
runAsNonRoot: true
108+
readOnlyRootFilesystem: true
108109
seccompProfile:
109110
type: 'RuntimeDefault'
110111
ports:
@@ -115,5 +116,11 @@ spec:
115116
requests:
116117
cpu: 10m
117118
memory: 32Mi
119+
volumeMounts:
120+
- name: tmp
121+
mountPath: /tmp
118122
serviceAccountName: controller-manager
119123
terminationGracePeriodSeconds: 10
124+
volumes:
125+
- name: tmp
126+
emptyDir: {}

0 commit comments

Comments
 (0)