blob: 6ada98ff5bc2c7ccbd8bd9d885b0217363290697 [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
16apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: default-http-backend
20 labels:
21 app: default-http-backend
22 namespace: {{ .Values.global.namespace }}
23spec:
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 Williams2749ae52018-09-28 09:43:43 -070036 image: {{ .Values.global.registry }}{{ .Values.images.http_backend.repository }}:{{ tpl .Values.images.http_backend.tag . }}
37 imagePullPolicy: {{ .Values.images.http_backend.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070038 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
56apiVersion: v1
57kind: Service
58metadata:
59 name: default-http-backend
60 namespace: {{ .Values.global.namespace }}
61 labels:
62 app: default-http-backend
63spec:
64 ports:
65 - port: 80
66 targetPort: 8080
67 selector:
68 app: default-http-backend