From a778963e7e8e201391207398fda8592fe8886e98 Mon Sep 17 00:00:00 2001 From: Gabriel Gazola Milan Date: Mon, 8 Jan 2024 17:57:29 -0300 Subject: [PATCH] fix(cd): liveness probe --- api/.kubernetes.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/.kubernetes.yaml b/api/.kubernetes.yaml index b1037a1..b7d858c 100644 --- a/api/.kubernetes.yaml +++ b/api/.kubernetes.yaml @@ -35,11 +35,9 @@ spec: initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: - exec: - command: - - bash - - "-c" - - kill -0 $(cat /run/nginx.pid) + httpGet: + path: /docs + port: 80 initialDelaySeconds: 5 periodSeconds: 10 resources: