Added Liveness Probe to Ceph Mgr

This will configure a liveness probe for every ceph mgr deployment

Signed-off-by: Christian Hüning <christian.huening@figo.io>
This commit is contained in:
Christian Hüning authored and Christian Hüning committed 2019-05-17 07:24:28 +02:00
1 parent 0c23e1cd4b
commit f0699c40bf
1 file changed
+10
+10
View File
@@ -32,6 +32,7 @@ import (
apps "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
func (c *Cluster) makeDeployment(mgrConfig *mgrConfig) *apps.Deployment {
@@ -265,6 +266,15 @@ func (c *Cluster) makeMgrDaemonContainer(mgrConfig *mgrConfig) v1.Container {
c.cephMgrOrchestratorModuleEnvs()...,
),
Resources: c.resources,
LivenessProbe: &v1.Probe{
Handler: v1.Handler{
HTTPGet: &v1.HTTPGetAction{
Path: "/",
Port: intstr.FromInt(metricsPort),
},
},
InitialDelaySeconds: 60,
},
}
return container
}