github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/original/services/infra/tasks/kube.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: tasks 5 spec: 6 replicas: 1 7 # podTemplate defines the 'cookie cutter' used for creating 8 # new pods when necessary 9 template: 10 metadata: 11 annotations: 12 prometheus.io.scrape: "true" 13 prometheus.io.port: "7080" 14 labels: 15 # Important: these labels need to match the selector above 16 # The api server enforces this constraint. 17 app: tasks 18 component: infra 19 spec: 20 volumes: 21 - name: secret-volume 22 secret: 23 secretName: star-example-com-secrets 24 containers: 25 - image: gcr.io/myproj/tasks:v0.2.6 26 ports: 27 - containerPort: 7080 28 - containerPort: 7443 29 name: tasks 30 volumeMounts: 31 - mountPath: /etc/ssl 32 name: secret-volume 33