github.com/googlecloudplatform/kubernetes-workshops@v0.0.0-20180501174420-d8199445b2c3/bundles/kubernetes-101/workshop/kubernetes/pods/secure-monolith.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: "secure-monolith" 5 labels: 6 app: monolith 7 spec: 8 containers: 9 - name: nginx 10 image: "nginx:1.9.14" 11 lifecycle: 12 preStop: 13 exec: 14 command: ["/usr/sbin/nginx","-s","quit"] 15 volumeMounts: 16 - name: "nginx-proxy-conf" 17 mountPath: "/etc/nginx/conf.d" 18 - name: "tls-certs" 19 mountPath: "/etc/tls" 20 - name: monolith 21 image: "askcarter/monolith:1.0.0" 22 ports: 23 - name: http 24 containerPort: 80 25 - name: health 26 containerPort: 81 27 resources: 28 limits: 29 cpu: 0.2 30 memory: "10Mi" 31 livenessProbe: 32 httpGet: 33 path: /healthz 34 port: 81 35 scheme: HTTP 36 initialDelaySeconds: 5 37 periodSeconds: 15 38 timeoutSeconds: 5 39 readinessProbe: 40 httpGet: 41 path: /readiness 42 port: 81 43 scheme: HTTP 44 initialDelaySeconds: 5 45 timeoutSeconds: 1 46 volumes: 47 - name: "tls-certs" 48 secret: 49 secretName: "tls-certs" 50 - name: "nginx-proxy-conf" 51 configMap: 52 name: "nginx-proxy-conf" 53 items: 54 - key: "proxy.conf" 55 path: "proxy.conf"