volcano.sh/volcano@v1.9.0/example/invalid_jobs/duplicatedTaskName-webhook-deny.yaml (about) 1 apiVersion: batch.volcano.sh/v1alpha1 2 kind: Job 3 metadata: 4 name: test-job-webhook-disallow 5 spec: 6 schedulerName: volcano 7 minAvailable: 4 8 tasks: 9 - replicas: 2 10 name: task-1 11 template: 12 metadata: 13 name: web-1 14 spec: 15 containers: 16 - image: nginx 17 imagePullPolicy: IfNotPresent 18 name: nginx 19 resources: 20 requests: 21 cpu: "1" 22 restartPolicy: OnFailure 23 - replicas: 2 24 name: task-1 ## this job will be rejected due to duplicated task name 25 template: 26 metadata: 27 name: web-1 28 spec: 29 containers: 30 - image: nginx 31 imagePullPolicy: IfNotPresent 32 name: nginx 33 resources: 34 requests: 35 cpu: "1" 36 restartPolicy: OnFailure