From d7874daca2fa271af449cde1c2404979d9872d4c Mon Sep 17 00:00:00 2001 From: Hui Kang Date: Sat, 3 Jul 2021 13:51:42 -0400 Subject: [PATCH] chore: add liveness and readiness probe to the install manifests 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 360e43d2ab..2b732d4458 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -12833,10 +12833,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 c9b29f7ddd..0711502e3d 100644 --- a/manifests/namespace-install.yaml +++ b/manifests/namespace-install.yaml @@ -12834,10 +12834,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