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