Merge pull request #3085 from christianhuening/feat-2271
added Liveness Probe to Ceph Mgr
This commit is contained in:
1 file changed
+10
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user