github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/original/services/proxy/nginx/kube.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: nginx 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: nginx 15 component: proxy 16 spec: 17 volumes: 18 - name: secret-volume 19 secret: 20 secretName: proxy-secrets 21 - name: config-volume 22 configMap: 23 name: nginx 24 containers: 25 # Put nginx last so it will be linked with previous two containers during 26 # testing. 27 - name: nginx 28 image: nginx:1.11.10-alpine 29 ports: 30 - containerPort: 80 31 - containerPort: 443 32 volumeMounts: 33 - mountPath: /etc/ssl 34 name: secret-volume 35 - name: config-volume 36 mountPath: /etc/nginx/nginx.conf 37 subPath: nginx.conf 38 39