Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | apiVersion: extensions/v1beta1 |
| 16 | kind: Deployment |
| 17 | metadata: |
| 18 | name: default-http-backend |
| 19 | labels: |
| 20 | app: default-http-backend |
| 21 | namespace: {{ .Values.global.namespace }} |
| 22 | spec: |
| 23 | replicas: 1 |
| 24 | template: |
| 25 | metadata: |
| 26 | labels: |
| 27 | app: default-http-backend |
| 28 | spec: |
| 29 | terminationGracePeriodSeconds: 60 |
| 30 | containers: |
| 31 | - name: default-http-backend |
| 32 | # Any image is permissable as long as: |
| 33 | # 1. It serves a 404 page at / |
| 34 | # 2. It serves 200 on a /healthz endpoint |
Matteo Scandolo | 8bf260d | 2018-09-19 11:36:29 -0700 | [diff] [blame] | 35 | image: {{ .Values.httpBackendImage }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 36 | livenessProbe: |
| 37 | httpGet: |
| 38 | path: /healthz |
| 39 | port: 8080 |
| 40 | scheme: HTTP |
| 41 | initialDelaySeconds: 30 |
| 42 | timeoutSeconds: 5 |
| 43 | ports: |
| 44 | - containerPort: 8080 |
| 45 | resources: |
| 46 | limits: |
| 47 | cpu: 10m |
| 48 | memory: 20Mi |
| 49 | requests: |
| 50 | cpu: 10m |
| 51 | memory: 20Mi |
| 52 | --- |
| 53 | |
| 54 | apiVersion: v1 |
| 55 | kind: Service |
| 56 | metadata: |
| 57 | name: default-http-backend |
| 58 | namespace: {{ .Values.global.namespace }} |
| 59 | labels: |
| 60 | app: default-http-backend |
| 61 | spec: |
| 62 | ports: |
| 63 | - port: 80 |
| 64 | targetPort: 8080 |
| 65 | selector: |
| 66 | app: default-http-backend |