From 58b17d3be0888f483f519d2299d760cffd1b2db9 Mon Sep 17 00:00:00 2001 From: Vishal Bollu Date: Wed, 29 Jan 2020 15:24:17 -0500 Subject: [PATCH] Improve healthcheck (#788) (cherry picked from commit cb95e2f37c1e0eef2808c0bddd3f0444b000b846) --- pkg/operator/operator/k8s_specs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/operator/k8s_specs.go b/pkg/operator/operator/k8s_specs.go index d106f15ad5..4b8440e9b2 100644 --- a/pkg/operator/operator/k8s_specs.go +++ b/pkg/operator/operator/k8s_specs.go @@ -577,7 +577,7 @@ var _apiReadinessProbe = &kcore.Probe{ FailureThreshold: 2, Handler: kcore.Handler{ Exec: &kcore.ExecAction{ - Command: []string{"/bin/bash", "-c", "/bin/ps aux | grep \"api.py\" && test -f /health_check.txt"}, + Command: []string{"/bin/bash", "-c", "/bin/ps aux | grep \"serve/run.sh\" | grep -v \"grep\" && test -f /health_check.txt"}, }, }, }