From a55338277ede61e5cd087d2fa2424341ee4a989b Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sun, 13 Nov 2022 04:21:29 +0100 Subject: [PATCH] feat(blog): Add readiness and liveness probes for blog --- apps/k8s01/blog/blog.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/k8s01/blog/blog.yaml b/apps/k8s01/blog/blog.yaml index 007e16c8c..3f6791da3 100644 --- a/apps/k8s01/blog/blog.yaml +++ b/apps/k8s01/blog/blog.yaml @@ -38,6 +38,20 @@ spec: limits: cpu: 100m memory: 256Mi + livenessProbe: + httpGet: + path: /status.txt + port: http + failureThreshold: 3 + periodSeconds: 5 + readinessProbe: + httpGet: + path: /status.txt + port: http + initialDelaySeconds: 5 + failureThreshold: 1 + successThreshold: 3 + periodSeconds: 5 --- apiVersion: v1 kind: Service -- GitLab