Skip to content

Commit 7a8ff9c

Browse files
committed
deployments: set readOnlyRootFilesystem
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
1 parent 64c7e0e commit 7a8ff9c

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

deployments/fpga_admissionwebhook/deployment-tpl.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ spec:
1515
- name: fpga-mutator
1616
image: intel/intel-fpga-admissionwebhook:devel
1717
imagePullPolicy: IfNotPresent
18+
securityContext:
19+
readOnlyRootFilesystem: true
1820
args:
1921
- -tls-cert-file=/etc/webhook/certs/cert.pem
2022
- -tls-private-key-file=/etc/webhook/certs/key.pem

deployments/fpga_plugin/fpga_plugin.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
- name: intel-fpga-initcontainer
2020
image: intel/intel-fpga-initcontainer:devel
2121
imagePullPolicy: IfNotPresent
22+
securityContext:
23+
readOnlyRootFilesystem: true
2224
volumeMounts:
2325
- mountPath: /opt/intel/fpga-sw
2426
name: intel-fpga-sw
@@ -33,6 +35,8 @@ spec:
3335
fieldPath: spec.nodeName
3436
image: intel/intel-fpga-plugin:devel
3537
imagePullPolicy: IfNotPresent
38+
securityContext:
39+
readOnlyRootFilesystem: true
3640
volumeMounts:
3741
- name: devfs
3842
mountPath: /dev

deployments/gpu_plugin/gpu_plugin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ spec:
2323
fieldPath: spec.nodeName
2424
image: intel/intel-gpu-plugin:devel
2525
imagePullPolicy: IfNotPresent
26+
securityContext:
27+
readOnlyRootFilesystem: true
2628
volumeMounts:
2729
- name: devfs
2830
mountPath: /dev

deployments/qat_dpdk_app/base/crypto-perf-dpdk-pod-requesting-qat.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
imagePullPolicy: IfNotPresent
1010
command: [ "/bin/bash", "-c", "--" ]
1111
args: [ "while true; do sleep 300000; done;" ]
12+
securityContext:
13+
readOnlyRootFilesystem: true
1214
volumeMounts:
1315
- mountPath: /dev/hugepages
1416
name: hugepage

deployments/qat_plugin/qat_plugin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ spec:
1616
containers:
1717
- name: intel-qat-plugin
1818
image: intel/intel-qat-plugin:devel
19+
securityContext:
20+
readOnlyRootFilesystem: true
1921
env:
2022
- name: DPDK_DRIVER
2123
valueFrom:

deployments/qat_plugin/qat_plugin_kernel_mode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
containers:
1717
- name: intel-qat-kernel-plugin
1818
securityContext:
19+
readOnlyRootFilesystem: true
1920
privileged: true
2021
image: intel/intel-qat-plugin:devel
2122
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)