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 | |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 16 | apiVersion: apps/v1 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 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 |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 25 | selector: |
| 26 | matchLabels: |
| 27 | name: default-http-backend |
| 28 | release: {{ .Release.Name }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 29 | template: |
| 30 | metadata: |
| 31 | labels: |
| 32 | app: default-http-backend |
| 33 | spec: |
| 34 | terminationGracePeriodSeconds: 60 |
| 35 | containers: |
| 36 | - name: default-http-backend |
| 37 | # Any image is permissable as long as: |
| 38 | # 1. It serves a 404 page at / |
| 39 | # 2. It serves 200 on a /healthz endpoint |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 40 | image: {{ .Values.global.registry }}{{ .Values.images.http_backend.repository }}:{{ tpl .Values.images.http_backend.tag . }} |
| 41 | imagePullPolicy: {{ .Values.images.http_backend.pullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 42 | livenessProbe: |
| 43 | httpGet: |
| 44 | path: /healthz |
| 45 | port: 8080 |
| 46 | scheme: HTTP |
| 47 | initialDelaySeconds: 30 |
| 48 | timeoutSeconds: 5 |
| 49 | ports: |
| 50 | - containerPort: 8080 |
| 51 | resources: |
| 52 | limits: |
| 53 | cpu: 10m |
| 54 | memory: 20Mi |
| 55 | requests: |
| 56 | cpu: 10m |
| 57 | memory: 20Mi |
| 58 | --- |
| 59 | |
| 60 | apiVersion: v1 |
| 61 | kind: Service |
| 62 | metadata: |
| 63 | name: default-http-backend |
| 64 | namespace: {{ .Values.global.namespace }} |
| 65 | labels: |
| 66 | app: default-http-backend |
| 67 | spec: |
| 68 | ports: |
| 69 | - port: 80 |
| 70 | targetPort: 8080 |
| 71 | selector: |
| 72 | app: default-http-backend |