blob: 64f6f58ad00ebc2eb7aaced62c0203d8ec28e4eb [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
7 namespace: ingress-nginx
8spec:
9 replicas: 1
10 template:
11 metadata:
12 labels:
13 app: default-http-backend
14 spec:
15 terminationGracePeriodSeconds: 60
16 containers:
17 - name: default-http-backend
18 # Any image is permissable as long as:
19 # 1. It serves a 404 page at /
20 # 2. It serves 200 on a /healthz endpoint
21 image: gcr.io/google_containers/defaultbackend:1.4
22 livenessProbe:
23 httpGet:
24 path: /healthz
25 port: 8080
26 scheme: HTTP
27 initialDelaySeconds: 30
28 timeoutSeconds: 5
29 ports:
30 - containerPort: 8080
31 resources:
32 limits:
33 cpu: 10m
34 memory: 20Mi
35 requests:
36 cpu: 10m
37 memory: 20Mi
38---
39
40apiVersion: v1
41kind: Service
42metadata:
43 name: default-http-backend
44 namespace: ingress-nginx
45 labels:
46 app: default-http-backend
47spec:
48 ports:
49 - port: 80
50 targetPort: 8080
51 selector:
52 app: default-http-backend