sigs.k8s.io/kueue@v0.6.2/site/static/examples/pods-kueue/kueue-pod-group.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Pod 4 metadata: 5 generateName: sample-leader- 6 labels: 7 kueue.x-k8s.io/queue-name: user-queue 8 kueue.x-k8s.io/pod-group-name: "sample-group" 9 annotations: 10 kueue.x-k8s.io/pod-group-total-count: "2" 11 spec: 12 restartPolicy: Never 13 containers: 14 - name: sleep 15 image: busybox 16 command: ["sh", "-c", 'echo "hello world from the leader pod" && sleep 3'] 17 resources: 18 requests: 19 cpu: 3 20 --- 21 apiVersion: v1 22 kind: Pod 23 metadata: 24 generateName: sample-worker- 25 labels: 26 kueue.x-k8s.io/queue-name: user-queue 27 kueue.x-k8s.io/pod-group-name: "sample-group" 28 annotations: 29 kueue.x-k8s.io/pod-group-total-count: "2" 30 spec: 31 restartPolicy: Never 32 containers: 33 - name: sleep 34 image: busybox 35 command: ["sh", "-c", 'echo "hello world from the worker pod" && sleep 2'] 36 resources: 37 requests: 38 cpu: 3