From 75919d52cad36798d5d456fa080ba54d4ed5f11d Mon Sep 17 00:00:00 2001 From: Mingchen Dai Date: Wed, 18 Sep 2024 01:36:23 +0000 Subject: [PATCH] Added Readiness Probing --- internal/controller/templates/statefulset.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/controller/templates/statefulset.yaml b/internal/controller/templates/statefulset.yaml index a9e1554..f4ee4b1 100644 --- a/internal/controller/templates/statefulset.yaml +++ b/internal/controller/templates/statefulset.yaml @@ -42,6 +42,12 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 + readinessProbe: + exec: + command: + - /bin/sh + - -c + - exec cat /etc/ssh/ssh_host*.pub resources: limits: cpu: 300m