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