Skip to content

Commit

Permalink
Revert "Add a startup probe to the longhorn-csi-plugin container"
Browse files Browse the repository at this point in the history
Longhorn 7428

This reverts commit fe405e6.
We no longer need these changes because livenessprobe was fixed upstream.
kubernetes-csi/livenessprobe#236

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 68ed92b)
  • Loading branch information
ejweber authored and PhanLe1010 committed Feb 15, 2024
1 parent aa4d40d commit a265f72
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions csi/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,6 @@ func NewPluginDeployment(namespace, serviceAccount, nodeDriverRegistrarImage, li
Protocol: corev1.ProtocolTCP,
},
},
StartupProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.FromInt(DefaultCSILivenessProbePort),
},
},
InitialDelaySeconds: datastore.PodProbeInitialDelay,
TimeoutSeconds: datastore.PodProbeTimeoutSeconds,
PeriodSeconds: datastore.PodProbePeriodSeconds,
// Ensure we are allowed at least the maximum container restart backoff time (five
// minutes) in case the livenessprobe container is in CrashLoopBackoff. See
// https://github.com/longhorn/longhorn/issues/7116.
FailureThreshold: (300 + datastore.PodProbePeriodSeconds - 1) / datastore.PodProbePeriodSeconds,
},
LivenessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Expand Down

0 comments on commit a265f72

Please sign in to comment.