2016-05-06 08:23:52 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-ingress-lb
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
k8s-app: nginx-ingress-lb
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-ingress-lb
|
|
|
|
name: nginx-ingress-lb
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
containers:
|
2016-08-29 18:47:20 +00:00
|
|
|
- image: gcr.io/google_containers/nginx-ingress-controller:0.8.3
|
2016-05-06 08:23:52 +00:00
|
|
|
name: nginx-ingress-lb
|
|
|
|
imagePullPolicy: Always
|
2016-09-16 21:23:52 +00:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /ingress-controller-healthz
|
|
|
|
port: 80
|
|
|
|
scheme: HTTP
|
2016-05-06 08:23:52 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
2016-09-16 21:23:52 +00:00
|
|
|
path: /ingress-controller-healthz
|
|
|
|
port: 80
|
2016-05-06 08:23:52 +00:00
|
|
|
scheme: HTTP
|
2016-09-16 21:23:52 +00:00
|
|
|
initialDelaySeconds: 10
|
|
|
|
timeoutSeconds: 1
|
2016-05-06 08:23:52 +00:00
|
|
|
# use downward API
|
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
- containerPort: 443
|
|
|
|
args:
|
|
|
|
- /nginx-ingress-controller
|
2016-08-19 08:25:38 +00:00
|
|
|
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
|
2016-08-19 08:53:33 +00:00
|
|
|
- --nginx-configmap=$(POD_NAMESPACE)/nginx-ingress-controller
|