Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: default-http-backend |
| 5 | labels: |
| 6 | app: default-http-backend |
| 7 | namespace: ingress-nginx |
| 8 | spec: |
| 9 | replicas: 1 |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: default-http-backend |
| 14 | spec: |
| 15 | terminationGracePeriodSeconds: 60 |
| 16 | containers: |
| 17 | - name: default-http-backend |
| 18 | # Any image is permissable as long as: |
| 19 | # 1. It serves a 404 page at / |
| 20 | # 2. It serves 200 on a /healthz endpoint |
| 21 | image: gcr.io/google_containers/defaultbackend:1.4 |
| 22 | livenessProbe: |
| 23 | httpGet: |
| 24 | path: /healthz |
| 25 | port: 8080 |
| 26 | scheme: HTTP |
| 27 | initialDelaySeconds: 30 |
| 28 | timeoutSeconds: 5 |
| 29 | ports: |
| 30 | - containerPort: 8080 |
| 31 | resources: |
| 32 | limits: |
| 33 | cpu: 10m |
| 34 | memory: 20Mi |
| 35 | requests: |
| 36 | cpu: 10m |
| 37 | memory: 20Mi |
| 38 | --- |
| 39 | |
| 40 | apiVersion: v1 |
| 41 | kind: Service |
| 42 | metadata: |
| 43 | name: default-http-backend |
| 44 | namespace: ingress-nginx |
| 45 | labels: |
| 46 | app: default-http-backend |
| 47 | spec: |
| 48 | ports: |
| 49 | - port: 80 |
| 50 | targetPort: 8080 |
| 51 | selector: |
| 52 | app: default-http-backend |