Expand Nginx Ingress liveness and readiness probes
* Remove dnsPolicy: ClusterFirst * https://github.com/kubernetes/ingress-nginx/pull/1584
This commit is contained in:
parent
3727c40c6c
commit
8582e19077
|
@ -16,6 +16,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
node-role.kubernetes.io/node: ""
|
node-role.kubernetes.io/node: ""
|
||||||
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: nginx-ingress-controller
|
- name: nginx-ingress-controller
|
||||||
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
||||||
|
@ -43,19 +44,24 @@ spec:
|
||||||
- name: health
|
- name: health
|
||||||
containerPort: 10254
|
containerPort: 10254
|
||||||
hostPort: 10254
|
hostPort: 10254
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 10254
|
|
||||||
scheme: HTTP
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
initialDelaySeconds: 11
|
failureThreshold: 3
|
||||||
timeoutSeconds: 1
|
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: 10254
|
port: 10254
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
hostNetwork: true
|
initialDelaySeconds: 10
|
||||||
dnsPolicy: ClusterFirst
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 10254
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
|
@ -16,6 +16,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
node-role.kubernetes.io/node: ""
|
node-role.kubernetes.io/node: ""
|
||||||
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: nginx-ingress-controller
|
- name: nginx-ingress-controller
|
||||||
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
||||||
|
@ -43,19 +44,24 @@ spec:
|
||||||
- name: health
|
- name: health
|
||||||
containerPort: 10254
|
containerPort: 10254
|
||||||
hostPort: 10254
|
hostPort: 10254
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 10254
|
|
||||||
scheme: HTTP
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
initialDelaySeconds: 10
|
failureThreshold: 3
|
||||||
timeoutSeconds: 1
|
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: 10254
|
port: 10254
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
hostNetwork: true
|
initialDelaySeconds: 10
|
||||||
dnsPolicy: ClusterFirst
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 10254
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
|
@ -16,6 +16,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
node-role.kubernetes.io/node: ""
|
node-role.kubernetes.io/node: ""
|
||||||
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: nginx-ingress-controller
|
- name: nginx-ingress-controller
|
||||||
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.15
|
||||||
|
@ -43,19 +44,24 @@ spec:
|
||||||
- name: health
|
- name: health
|
||||||
containerPort: 10254
|
containerPort: 10254
|
||||||
hostPort: 10254
|
hostPort: 10254
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 10254
|
|
||||||
scheme: HTTP
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
initialDelaySeconds: 10
|
failureThreshold: 3
|
||||||
timeoutSeconds: 1
|
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: 10254
|
port: 10254
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
hostNetwork: true
|
initialDelaySeconds: 10
|
||||||
dnsPolicy: ClusterFirst
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 10254
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
Loading…
Reference in New Issue