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