From 241296be8af29e21b89d048bc4b5605a201d761c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 5 Jun 2019 13:59:40 +0200 Subject: [PATCH] ceph: rgw add liveness probe check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We now check if the pod responds on http port 80. Signed-off-by: Sébastien Han --- PendingReleaseNotes.md | 1 + pkg/operator/ceph/object/spec.go | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/PendingReleaseNotes.md b/PendingReleaseNotes.md index 6ee2f039f..0480c4ce6 100644 --- a/PendingReleaseNotes.md +++ b/PendingReleaseNotes.md @@ -10,6 +10,7 @@ an example usage ### Ceph - Rook can now be configured to read "region" and "zone" labels on Kubernetes nodes and use that information as part of the CRUSH location for the OSDs. +- Rgw pods have liveness probe enabled ## Breaking Changes diff --git a/pkg/operator/ceph/object/spec.go b/pkg/operator/ceph/object/spec.go index b31625d6f..84b26c188 100644 --- a/pkg/operator/ceph/object/spec.go +++ b/pkg/operator/ceph/object/spec.go @@ -188,6 +188,15 @@ func (c *clusterConfig) makeDaemonContainer() v1.Container { ), Env: opspec.DaemonEnvVars(c.cephVersion.Image), Resources: c.store.Spec.Gateway.Resources, + LivenessProbe: &v1.Probe{ + Handler: v1.Handler{ + HTTPGet: &v1.HTTPGetAction{ + Path: "/", + Port: intstr.FromInt(int(c.store.Spec.Gateway.Port)), + }, + }, + InitialDelaySeconds: 10, + }, } if c.store.Spec.Gateway.SSLCertificateRef != "" {