2018-02-13 01:08:44 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
2018-06-07 09:25:25 +00:00
|
|
|
kind: Deployment
|
2018-02-13 01:08:44 +00:00
|
|
|
metadata:
|
2018-08-22 03:02:56 +00:00
|
|
|
name: default-backend
|
2018-02-13 01:08:44 +00:00
|
|
|
namespace: {{ ingress_nginx_namespace }}
|
|
|
|
labels:
|
2018-09-02 04:19:38 +00:00
|
|
|
app.kubernetes.io/name: default-backend
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2018-02-13 01:08:44 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-09-02 04:19:38 +00:00
|
|
|
app.kubernetes.io/name: default-backend
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2018-02-13 01:08:44 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-09-02 04:19:38 +00:00
|
|
|
app.kubernetes.io/name: default-backend
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2018-02-13 01:08:44 +00:00
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
containers:
|
2018-06-07 09:25:25 +00:00
|
|
|
- name: default-backend
|
2018-02-13 01:08:44 +00:00
|
|
|
# Any image is permissible as long as:
|
|
|
|
# 1. It serves a 404 page at /
|
|
|
|
# 2. It serves 200 on a /healthz endpoint
|
|
|
|
image: {{ ingress_nginx_default_backend_image_repo }}:{{ ingress_nginx_default_backend_image_tag }}
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
timeoutSeconds: 5
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
2018-06-07 09:25:25 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 20Mi
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 20Mi
|
2018-06-05 11:15:20 +00:00
|
|
|
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
|
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/os: linux
|