From d851fd60a51ef2d79e083c76efaec4aa1e5ef31e Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 1 Mar 2017 09:28:44 +0530 Subject: [PATCH] mean: fix health probes --- incubator/mean/templates/deployment.yaml | 11 ++++------- incubator/mean/templates/svc.yaml | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/incubator/mean/templates/deployment.yaml b/incubator/mean/templates/deployment.yaml index 5784a6981..b5e401b3d 100644 --- a/incubator/mean/templates/deployment.yaml +++ b/incubator/mean/templates/deployment.yaml @@ -100,18 +100,15 @@ spec: livenessProbe: httpGet: path: / - port: 8080 + port: http initialDelaySeconds: 180 periodSeconds: 5 timeoutSeconds: 5 failureThreshold: 10 readinessProbe: - exec: - command: - - nc - - -zv - - {{ template "mongodb.fullname" . }} - - "27017" + httpGet: + path: / + port: http initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 1 diff --git a/incubator/mean/templates/svc.yaml b/incubator/mean/templates/svc.yaml index bca1b2aae..cf77abe82 100644 --- a/incubator/mean/templates/svc.yaml +++ b/incubator/mean/templates/svc.yaml @@ -12,6 +12,6 @@ spec: ports: - name: http port: 80 - targetPort: 8080 + targetPort: http selector: app: {{ template "fullname" . }}