blob: 275cfe3f67897e27ca3f462245175c51de81204d [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -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.
Richard Jankowskic3c291c2018-02-02 13:57:33 -050014apiVersion: extensions/v1beta1
15kind: Deployment
16metadata:
17 name: default-http-backend
18 labels:
19 app: default-http-backend
Richard Jankowskid4454382018-02-08 16:21:43 -050020 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050021spec:
22 replicas: 1
23 template:
24 metadata:
25 labels:
26 app: default-http-backend
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040027 annotations:
28 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050029 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
36 image: gcr.io/google_containers/defaultbackend:1.4
37 livenessProbe:
38 httpGet:
39 path: /healthz
40 port: 8080
41 scheme: HTTP
42 initialDelaySeconds: 30
43 timeoutSeconds: 5
44 ports:
45 - containerPort: 8080
46 resources:
47 limits:
48 cpu: 10m
49 memory: 20Mi
50 requests:
51 cpu: 10m
52 memory: 20Mi
53---
54
55apiVersion: v1
56kind: Service
57metadata:
58 name: default-http-backend
Richard Jankowskid4454382018-02-08 16:21:43 -050059 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050060 labels:
61 app: default-http-backend
62spec:
63 ports:
64 - port: 80
65 targetPort: 8080
66 selector:
67 app: default-http-backend