You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
6 years ago
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: default-http-backend
|
||
|
labels:
|
||
|
app: default-http-backend
|
||
|
namespace: kube-ingress
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: default-http-backend
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: default-http-backend
|
||
|
spec:
|
||
|
terminationGracePeriodSeconds: 60
|
||
|
containers:
|
||
|
- name: default-http-backend
|
||
|
# Any image is permissible as long as:
|
||
|
# 1. It serves a 404 page at /
|
||
|
# 2. It serves 200 on a /healthz endpoint
|
||
|
image: gcr.io/google_containers/defaultbackend:1.4
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /healthz
|
||
|
port: 8080
|
||
|
scheme: HTTP
|
||
|
initialDelaySeconds: 30
|
||
|
timeoutSeconds: 5
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 10m
|
||
|
memory: 20Mi
|
||
|
requests:
|
||
|
cpu: 10m
|
||
|
memory: 20Mi
|
||
|
---
|
||
|
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: default-http-backend
|
||
|
namespace: kube-ingress
|
||
|
labels:
|
||
|
app: default-http-backend
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: 8080
|
||
|
selector:
|
||
|
app: default-http-backend
|