2016-02-22 00:13:08 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
2016-03-28 01:12:15 +00:00
|
|
|
name: nginx-ingress-controller
|
2016-02-22 00:13:08 +00:00
|
|
|
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:
|
2016-03-31 18:00:02 +00:00
|
|
|
terminationGracePeriodSeconds: 60
|
2016-02-22 00:13:08 +00:00
|
|
|
containers:
|
2016-03-31 17:59:28 +00:00
|
|
|
- image: gcr.io/google_containers/nginx-ingress-controller:0.5
|
2016-02-22 00:13:08 +00:00
|
|
|
name: nginx-ingress-lb
|
|
|
|
imagePullPolicy: Always
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 10249
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
timeoutSeconds: 5
|
|
|
|
# use downward API
|
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
hostPort: 80
|
|
|
|
- containerPort: 443
|
|
|
|
hostPort: 4444
|
|
|
|
args:
|
2016-03-28 01:12:15 +00:00
|
|
|
- /nginx-ingress-controller
|
2016-02-22 00:13:08 +00:00
|
|
|
- --default-backend-service=default/default-http-backend
|