Merge pull request #3085 from christianhuening/feat-2271

added Liveness Probe to Ceph Mgr
This commit is contained in:
Travis Nielsen authored and GitHub committed 2019-05-28 17:26:12 -06:00
commit 1daa70f79c
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
}