diff --git a/deploy-k3s/manifests/observability/vmagent.yaml b/deploy-k3s/manifests/observability/vmagent.yaml index e12032d..ffc1217 100644 --- a/deploy-k3s/manifests/observability/vmagent.yaml +++ b/deploy-k3s/manifests/observability/vmagent.yaml @@ -227,10 +227,11 @@ spec: command: - sh - -c - - 'n=$(wget -qO- http://localhost:8429/api/v1/targets 2>/dev/null | grep -c ''"health":"up"''); [ "$n" -gt 0 ]' - initialDelaySeconds: 120 - periodSeconds: 60 - failureThreshold: 3 + - 'n=$(wget -qO- -T 4 http://localhost:8429/api/v1/targets 2>/dev/null | grep -c ''"health":"up"''); [ "$n" -gt 0 ]' + initialDelaySeconds: 180 + periodSeconds: 120 + timeoutSeconds: 5 + failureThreshold: 5 readinessProbe: httpGet: path: /-/healthy