volcano.sh/volcano@v1.9.0/example/deployment/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: deploy-with-volcano 5 labels: 6 app: nginx 7 spec: 8 replicas: 1 9 selector: 10 matchLabels: 11 app: nginx 12 template: 13 metadata: 14 labels: 15 app: nginx 16 annotations: 17 #create test queue and use this annotation 18 #to make deployment be scheduled into test queue 19 scheduling.volcano.sh/queue-name: test 20 spec: 21 # set spec.schedulerName to 'volcano' instead of 22 # 'default-scheduler' for deployment. 23 schedulerName: volcano 24 containers: 25 - name: nginx 26 image: nginx:latest 27 ports: 28 - containerPort: 80 29 resources: 30 requests: 31 cpu: 300m