blob: f1e33f6e7f3740c0d68af008c07e9ad3041293d7 [file] [log] [blame]
Richard Jankowskic3c291c2018-02-02 13:57:33 -05001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: default-http-backend
5 labels:
6 app: default-http-backend
Richard Jankowskid4454382018-02-08 16:21:43 -05007 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -05008spec:
9 replicas: 1
10 template:
11 metadata:
12 labels:
13 app: default-http-backend
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040014 annotations:
15 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050016 spec:
17 terminationGracePeriodSeconds: 60
18 containers:
19 - name: default-http-backend
20 # Any image is permissable as long as:
21 # 1. It serves a 404 page at /
22 # 2. It serves 200 on a /healthz endpoint
23 image: gcr.io/google_containers/defaultbackend:1.4
24 livenessProbe:
25 httpGet:
26 path: /healthz
27 port: 8080
28 scheme: HTTP
29 initialDelaySeconds: 30
30 timeoutSeconds: 5
31 ports:
32 - containerPort: 8080
33 resources:
34 limits:
35 cpu: 10m
36 memory: 20Mi
37 requests:
38 cpu: 10m
39 memory: 20Mi
40---
41
42apiVersion: v1
43kind: Service
44metadata:
45 name: default-http-backend
Richard Jankowskid4454382018-02-08 16:21:43 -050046 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050047 labels:
48 app: default-http-backend
49spec:
50 ports:
51 - port: 80
52 targetPort: 8080
53 selector:
54 app: default-http-backend