mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 08:49:33 +01:00
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: nginx-ingress-controller
|
||
|
namespace: ingress
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
strategy:
|
||
|
rollingUpdate:
|
||
|
maxUnavailable: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: nginx-ingress-controller
|
||
|
phase: prod
|
||
|
spec:
|
||
|
nodeSelector:
|
||
|
node-role.kubernetes.io/node: ""
|
||
|
containers:
|
||
|
- name: nginx-ingress-controller
|
||
|
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.11
|
||
|
args:
|
||
|
- /nginx-ingress-controller
|
||
|
- --default-backend-service=$(POD_NAMESPACE)/default-backend
|
||
|
- --ingress-class=public
|
||
|
# use downward API
|
||
|
env:
|
||
|
- name: POD_NAME
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.name
|
||
|
- name: POD_NAMESPACE
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.namespace
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 80
|
||
|
hostPort: 80
|
||
|
- name: https
|
||
|
containerPort: 443
|
||
|
hostPort: 443
|
||
|
- name: health
|
||
|
containerPort: 10254
|
||
|
hostPort: 10254
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /healthz
|
||
|
port: 10254
|
||
|
scheme: HTTP
|
||
|
livenessProbe:
|
||
|
initialDelaySeconds: 11
|
||
|
timeoutSeconds: 1
|
||
|
httpGet:
|
||
|
path: /healthz
|
||
|
port: 10254
|
||
|
scheme: HTTP
|
||
|
hostNetwork: true
|
||
|
dnsPolicy: ClusterFirst
|
||
|
restartPolicy: Always
|
||
|
terminationGracePeriodSeconds: 60
|