From 135f88e97376a51c64a1717463e9c21551190de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wanzenb=C3=B6ck?= Date: Fri, 7 Jun 2024 08:59:02 +0200 Subject: [PATCH] snapshot-controller: add ready/liveness probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Moritz Wanzenböck --- charts/snapshot-controller/Chart.yaml | 2 +- .../templates/deployment_controller.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/snapshot-controller/Chart.yaml b/charts/snapshot-controller/Chart.yaml index bd75f14..2d55bf8 100644 --- a/charts/snapshot-controller/Chart.yaml +++ b/charts/snapshot-controller/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: snapshot-controller -version: 3.0.1 +version: 3.0.2 appVersion: "v8.0.1" kubeVersion: ">= 1.25" icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg diff --git a/charts/snapshot-controller/templates/deployment_controller.yaml b/charts/snapshot-controller/templates/deployment_controller.yaml index 8dd4151..4fa022a 100644 --- a/charts/snapshot-controller/templates/deployment_controller.yaml +++ b/charts/snapshot-controller/templates/deployment_controller.yaml @@ -44,6 +44,16 @@ spec: - name: http containerPort: 8080 protocol: TCP + readinessProbe: + httpGet: + port: http + path: /healthz/leader-election + scheme: HTTP + livenessProbe: + httpGet: + port: http + path: /healthz/leader-election + scheme: HTTP env: - name: NAMESPACE valueFrom: