From bde3394fb290f01bf9167a33a856a476a21fa2e4 Mon Sep 17 00:00:00 2001 From: oilbeater Date: Tue, 17 Apr 2018 22:48:51 +0800 Subject: [PATCH] fix: fill missing patch yaml config. The patch-service yaml missing livenessProbe, readinessProbe and prometheus annotation parts. --- deploy/provider/patch-service-with-rbac.yaml | 24 ++++++++++++++++++- .../provider/patch-service-without-rbac.yaml | 22 +++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/deploy/provider/patch-service-with-rbac.yaml b/deploy/provider/patch-service-with-rbac.yaml index ebfaf9eacc..561d684879 100644 --- a/deploy/provider/patch-service-with-rbac.yaml +++ b/deploy/provider/patch-service-with-rbac.yaml @@ -12,8 +12,11 @@ spec: metadata: labels: app: ingress-nginx + annotations: + prometheus.io/port: '10254' + prometheus.io/scrape: 'true' spec: - serviceAccountName: nginx-ingress-serviceaccount + serviceAccountName: nginx-ingress-serviceaccount containers: - name: nginx-ingress-controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.13.0 @@ -39,3 +42,22 @@ spec: containerPort: 80 - name: https containerPort: 443 + livenessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 diff --git a/deploy/provider/patch-service-without-rbac.yaml b/deploy/provider/patch-service-without-rbac.yaml index 61b1038542..5331a40d01 100644 --- a/deploy/provider/patch-service-without-rbac.yaml +++ b/deploy/provider/patch-service-without-rbac.yaml @@ -12,6 +12,9 @@ spec: metadata: labels: app: ingress-nginx + annotations: + prometheus.io/port: '10254' + prometheus.io/scrape: 'true' spec: containers: - name: nginx-ingress-controller @@ -38,3 +41,22 @@ spec: containerPort: 80 - name: https containerPort: 443 + livenessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 10254 + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1