blob: 7ee1ddd1f3337790ab9cfbfbd1b344b37449d3a3 [file] [log] [blame]
Zack Williams2749ae52018-09-28 09:43:43 -07001---
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07002# 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 Scandolo5628d4b2021-01-11 11:46:12 -080016apiVersion: apps/v1
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070017kind: Deployment
18metadata:
19 name: default-http-backend
20 labels:
21 app: default-http-backend
22 namespace: {{ .Values.global.namespace }}
23spec:
24 replicas: 1
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080025 selector:
26 matchLabels:
27 name: default-http-backend
28 release: {{ .Release.Name }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070029 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 Williams2749ae52018-09-28 09:43:43 -070040 image: {{ .Values.global.registry }}{{ .Values.images.http_backend.repository }}:{{ tpl .Values.images.http_backend.tag . }}
41 imagePullPolicy: {{ .Values.images.http_backend.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070042 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
60apiVersion: v1
61kind: Service
62metadata:
63 name: default-http-backend
64 namespace: {{ .Values.global.namespace }}
65 labels:
66 app: default-http-backend
67spec:
68 ports:
69 - port: 80
70 targetPort: 8080
71 selector:
72 app: default-http-backend