From fa268976c16bb640fa5fbefca302c089b94ad681 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 14 Dec 2016 15:38:38 +0530 Subject: [PATCH] use `curl` to test api endpoint in parseServer probes --- incubator/parse/templates/server-deployment.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/incubator/parse/templates/server-deployment.yaml b/incubator/parse/templates/server-deployment.yaml index a842fc200..ecb4e3596 100644 --- a/incubator/parse/templates/server-deployment.yaml +++ b/incubator/parse/templates/server-deployment.yaml @@ -43,19 +43,19 @@ spec: livenessProbe: exec: command: - - nc - - -z - - localhost - - "{{ .Values.parseServer.port }}" + - curl + - -H + - "X-Parse-Application-Id: {{ .Values.parseServer.appId }}" + - "http://localhost:{{ .Values.parseServer.port }}{{ .Values.parseServer.mountPath }}/users" initialDelaySeconds: 120 timeoutSeconds: 5 readinessProbe: exec: command: - - nc - - -z - - localhost - - "{{ .Values.parseServer.port }}" + - curl + - -H + - "X-Parse-Application-Id: {{ .Values.parseServer.appId }}" + - "http://localhost:{{ .Values.parseServer.port }}{{ .Values.parseServer.mountPath }}/users" initialDelaySeconds: 5 timeoutSeconds: 1 resources: