Skip to content

Commit e039215

Browse files
authored
manifests/deployment: comply to restricted pod security level (#616)
1 parent 49d2621 commit e039215

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

manifests/06-deployment-ibm-cloud-managed.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ spec:
2020
labels:
2121
app: insights-operator
2222
spec:
23+
securityContext:
24+
runAsNonRoot: true
25+
seccompProfile:
26+
type: RuntimeDefault
2327
containers:
2428
- args:
2529
- start
@@ -38,6 +42,10 @@ spec:
3842
value: 0.0.1-snapshot
3943
image: quay.io/openshift/origin-insights-operator:latest
4044
name: insights-operator
45+
securityContext:
46+
allowPrivilegeEscalation: false
47+
capabilities:
48+
drop: ["ALL"]
4149
ports:
4250
- containerPort: 8443
4351
name: https

manifests/06-deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121
labels:
2222
app: insights-operator
2323
spec:
24+
securityContext:
25+
runAsNonRoot: true
26+
seccompProfile:
27+
type: RuntimeDefault
2428
serviceAccountName: operator
2529
priorityClassName: system-cluster-critical
2630
nodeSelector:
@@ -56,6 +60,10 @@ spec:
5660
optional: true
5761
containers:
5862
- name: insights-operator
63+
securityContext:
64+
allowPrivilegeEscalation: false
65+
capabilities:
66+
drop: ["ALL"]
5967
image: quay.io/openshift/origin-insights-operator:latest
6068
terminationMessagePolicy: FallbackToLogsOnError
6169
volumeMounts:

0 commit comments

Comments
 (0)