1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-25 09:28:16 +00:00

Update job-master.yaml for K8s 1.24.x labels/tolerations (#1250) (#1251)

This commit is contained in:
Dmitriy Dubson 2022-08-21 02:25:15 -04:00 committed by GitHub
parent 93a167a917
commit 113ee337ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,23 @@ spec:
template: template:
spec: spec:
hostPID: true hostPID: true
nodeSelector: affinity:
node-role.kubernetes.io/master: "" nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master
operator: Exists operator: Exists
effect: NoSchedule effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
containers: containers:
- name: kube-bench - name: kube-bench
image: docker.io/aquasec/kube-bench:latest image: docker.io/aquasec/kube-bench:latest