Set TerminationGracePeriodSecond for wathola-sender to 300 seconds
* There may be blocking calls in the sender which can take longer than
the default period. This prevents the infinite loop from handling the
SIGTERM, resulting in not sending a Stop event.
@@ -35,6 +35,7 @@ var senderName = "wathola-sender"
func (p *prober) deploySender() {
p.log.Info("Deploy sender deployment: ", senderName)
var replicas int32 = 1
+ var gracePeriodSeconds int64 = 300
deployment := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: senderName,
@@ -73,6 +74,7 @@ func (p *prober) deploySender() {
MountPath: p.config.ConfigMountPoint,
}},
}},
+ TerminationGracePeriodSeconds: &gracePeriodSeconds,
},
},
},
