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 != "" {