blob: 5b2cdb8bca7039491a10791ef3bfa57243962345 [file] [log] [blame]
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07001# 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
15apiVersion: extensions/v1beta1
16kind: Deployment
17metadata:
18 name: default-http-backend
19 labels:
20 app: default-http-backend
21 namespace: {{ .Values.global.namespace }}
22spec:
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 Scandolo8bf260d2018-09-19 11:36:29 -070035 image: {{ .Values.httpBackendImage }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070036 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
54apiVersion: v1
55kind: Service
56metadata:
57 name: default-http-backend
58 namespace: {{ .Values.global.namespace }}
59 labels:
60 app: default-http-backend
61spec:
62 ports:
63 - port: 80
64 targetPort: 8080
65 selector:
66 app: default-http-backend