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