github.com/googlecloudplatform/kubernetes-workshops@v0.0.0-20180501174420-d8199445b2c3/bundles/kubernetes-101/workshop/kubernetes/pods/healthy-monolith.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: "healthy-monolith" 5 labels: 6 app: monolith 7 spec: 8 containers: 9 - name: monolith 10 image: askcarter/monolith:1.0.0 11 ports: 12 - name: http 13 containerPort: 80 14 - name: health 15 containerPort: 81 16 resources: 17 limits: 18 cpu: 0.2 19 memory: "10Mi" 20 livenessProbe: 21 httpGet: 22 path: /healthz 23 port: 81 24 scheme: HTTP 25 initialDelaySeconds: 5 26 periodSeconds: 15 27 timeoutSeconds: 5 28 readinessProbe: 29 httpGet: 30 path: /readiness 31 port: 81 32 scheme: HTTP 33 initialDelaySeconds: 5 34 timeoutSeconds: 1