Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
56 changes: 56 additions & 0 deletions deploy/addons/volcano/volcano-development.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ spec:
labels:
app: volcano-admission
spec:
securityContext:
seLinuxOptions:
level: s0:c123,c456
seccompProfile:
type: RuntimeDefault
serviceAccount: volcano-admission
priorityClassName: system-cluster-critical
containers:
Expand All @@ -156,6 +161,15 @@ spec:
readOnly: true
- mountPath: /admission.local.config/configmap
name: admission-config
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- DAC_OVERRIDE
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
volumes:
- name: admission-certs
secret:
Expand Down Expand Up @@ -226,6 +240,11 @@ spec:
backoffLimit: 3
template:
spec:
securityContext:
seLinuxOptions:
level: s0:c123,c456
seccompProfile:
type: RuntimeDefault
serviceAccountName: volcano-admission-init
priorityClassName: system-cluster-critical
restartPolicy: Never
Expand All @@ -235,6 +254,15 @@ spec:
imagePullPolicy: Always
command: ["./gen-admission-secret.sh", "--service", "volcano-admission-service", "--namespace",
"volcano-system", "--secret", "volcano-admission-secret"]
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- DAC_OVERRIDE
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
---
# Source: volcano/templates/batch_v1alpha1_job.yaml
apiVersion: apiextensions.k8s.io/v1
Expand Down Expand Up @@ -4453,6 +4481,11 @@ spec:
labels:
app: volcano-controller
spec:
securityContext:
seLinuxOptions:
level: s0:c123,c456
seccompProfile:
type: RuntimeDefault
serviceAccount: volcano-controllers
priorityClassName: system-cluster-critical
containers:
Expand All @@ -4471,6 +4504,15 @@ spec:
- -v=4
- 2>&1
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- DAC_OVERRIDE
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
---
# Source: volcano/templates/scheduler.yaml
apiVersion: v1
Expand Down Expand Up @@ -4630,6 +4672,11 @@ spec:
labels:
app: volcano-scheduler
spec:
securityContext:
seLinuxOptions:
level: s0:c123,c456
seccompProfile:
type: RuntimeDefault
serviceAccount: volcano-scheduler
priorityClassName: system-cluster-critical
containers:
Expand All @@ -4656,6 +4703,15 @@ spec:
mountPath: /volcano.scheduler
- name: klog-sock
mountPath: /tmp/klog-socks
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- DAC_OVERRIDE
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
volumes:
- name: scheduler-config
configMap:
Expand Down
6 changes: 3 additions & 3 deletions pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,9 @@ var Addons = map[string]*Addon{
"volcano-deployment.yaml",
"0640"),
}, false, "volcano", "third-party (volcano)", "hwdef", "", map[string]string{
"vc_webhook_manager": "volcanosh/vc-webhook-manager:v1.11.1@sha256:cc1176ecd37e6ff68dc42ae0fe9479f76fa83c92337e22f00047bd39eb1d3281",
"vc_controller_manager": "volcanosh/vc-controller-manager:v1.11.1@sha256:17168ad7c5df85db878d5170ed9a0c3938872b9ddef545bfb06922abc12e9cbf",
"vc_scheduler": "volcanosh/vc-scheduler:v1.11.1@sha256:b50b31efb47d3ac8f724575b8e3d0fa3d79ab2229c9fcc4b3ac7dd3866ed56de",
"vc_webhook_manager": "volcanosh/vc-webhook-manager:v1.11.2@sha256:e3dd5fc9c8af79bfa2182ccd4f48ba0a87c2047d3bdd59dd415288bf19c80ddc",
"vc_controller_manager": "volcanosh/vc-controller-manager:v1.11.2@sha256:ef164e8b3061838a315442ad9ffeb9699a636a73123c5269665fd7aeab06757c",
"vc_scheduler": "volcanosh/vc-scheduler:v1.11.2@sha256:5b77f6b38127db41afe4a38bbf585fa2ea5555998459d34f4f1691233f506121",
}, map[string]string{
"vc_webhook_manager": "docker.io",
"vc_controller_manager": "docker.io",
Expand Down