Skip to content

Commit 7e4b506

Browse files
committed
fix pss restricted warnings
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
1 parent 4884253 commit 7e4b506

File tree

5 files changed

+40
-4
lines changed

5 files changed

+40
-4
lines changed

manifests/v1beta1/components/controller/controller.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ spec:
5858
name: katib-config
5959
subPath: katib-config.yaml
6060
readOnly: true
61+
securityContext:
62+
runAsNonRoot: true
63+
allowPrivilegeEscalation: false
64+
runAsUser: 1000
65+
seccompProfile:
66+
type: RuntimeDefault
67+
capabilities:
68+
drop:
69+
- ALL
6170
volumes:
6271
- name: cert
6372
secret:

manifests/v1beta1/components/controller/trial-templates.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data:
1515
spec:
1616
containers:
1717
- name: training-container
18-
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:latest
18+
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v0.18.0-rc.0
1919
command:
2020
- "python3"
2121
- "/opt/pytorch-mnist/mnist.py"
@@ -33,7 +33,7 @@ data:
3333
spec:
3434
containers:
3535
- name: training-container
36-
image: docker.io/kubeflowkatib/enas-cnn-cifar10-cpu:latest
36+
image: docker.io/kubeflowkatib/enas-cnn-cifar10-cpu:v0.18.0-rc.0
3737
command:
3838
- python3
3939
- -u
@@ -54,7 +54,7 @@ data:
5454
spec:
5555
containers:
5656
- name: pytorch
57-
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:latest
57+
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v0.18.0-rc.0
5858
command:
5959
- "python3"
6060
- "/opt/pytorch-mnist/mnist.py"
@@ -68,7 +68,7 @@ data:
6868
spec:
6969
containers:
7070
- name: pytorch
71-
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:latest
71+
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v0.18.0-rc.0
7272
command:
7373
- "python3"
7474
- "/opt/pytorch-mnist/mnist.py"

manifests/v1beta1/components/db-manager/db-manager.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ spec:
4040
initialDelaySeconds: 10
4141
periodSeconds: 60
4242
failureThreshold: 5
43+
securityContext:
44+
runAsNonRoot: true
45+
allowPrivilegeEscalation: false
46+
runAsUser: 1000
47+
seccompProfile:
48+
type: RuntimeDefault
49+
capabilities:
50+
drop:
51+
- ALL

manifests/v1beta1/components/mysql/mysql.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ spec:
6868
volumeMounts:
6969
- name: katib-mysql
7070
mountPath: /var/lib/mysql
71+
securityContext:
72+
runAsNonRoot: true
73+
allowPrivilegeEscalation: false
74+
runAsUser: 1000
75+
seccompProfile:
76+
type: RuntimeDefault
77+
capabilities:
78+
drop:
79+
- ALL
7180
volumes:
7281
- name: katib-mysql
7382
persistentVolumeClaim:

manifests/v1beta1/components/ui/ui.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,13 @@ spec:
3333
ports:
3434
- name: ui
3535
containerPort: 8080
36+
securityContext:
37+
runAsNonRoot: true
38+
allowPrivilegeEscalation: false
39+
runAsUser: 1000
40+
seccompProfile:
41+
type: RuntimeDefault
42+
capabilities:
43+
drop:
44+
- ALL
3645
serviceAccountName: katib-ui

0 commit comments

Comments
 (0)