From 503c5209ebcce7247f3aabff52a35210ea767b2b Mon Sep 17 00:00:00 2001 From: cskh Date: Wed, 7 Jul 2021 08:21:24 -0400 Subject: [PATCH] chore: add liveness and readiness probe to the install manifests (#1324) Signed-off-by: Hui Kang --- manifests/base/argo-rollouts-deployment.yaml | 17 +++++++++++++++++ manifests/install.yaml | 17 +++++++++++++++++ manifests/namespace-install.yaml | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/manifests/base/argo-rollouts-deployment.yaml b/manifests/base/argo-rollouts-deployment.yaml index 4f8dc2e7eb..15946db3c5 100644 --- a/manifests/base/argo-rollouts-deployment.yaml +++ b/manifests/base/argo-rollouts-deployment.yaml @@ -23,6 +23,23 @@ spec: ports: - containerPort: 8090 name: metrics + livenessProbe: + httpGet: + path: /metrics + port: 8090 + initialDelaySeconds: 30 + periodSeconds: 20 + failureThreshold: 3 + successThreshold: 1 + timeoutSeconds: 10 + readinessProbe: + httpGet: + path: /metrics + port: 8090 + periodSeconds: 5 + failureThreshold: 3 + successThreshold: 1 + timeoutSeconds: 4 securityContext: runAsNonRoot: true strategy: diff --git a/manifests/install.yaml b/manifests/install.yaml index 6bf4add046..a27de7d9e2 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -12835,10 +12835,27 @@ spec: containers: - image: quay.io/argoproj/argo-rollouts:latest imagePullPolicy: Always + livenessProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 8090 + initialDelaySeconds: 30 + periodSeconds: 20 + successThreshold: 1 + timeoutSeconds: 10 name: argo-rollouts ports: - containerPort: 8090 name: metrics + readinessProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 8090 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 4 securityContext: runAsNonRoot: true serviceAccountName: argo-rollouts diff --git a/manifests/namespace-install.yaml b/manifests/namespace-install.yaml index 0c5004eeac..4b77ed0ea4 100644 --- a/manifests/namespace-install.yaml +++ b/manifests/namespace-install.yaml @@ -12836,10 +12836,27 @@ spec: - --namespaced image: quay.io/argoproj/argo-rollouts:latest imagePullPolicy: Always + livenessProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 8090 + initialDelaySeconds: 30 + periodSeconds: 20 + successThreshold: 1 + timeoutSeconds: 10 name: argo-rollouts ports: - containerPort: 8090 name: metrics + readinessProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 8090 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 4 securityContext: runAsNonRoot: true serviceAccountName: argo-rollouts