-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPBUGS-45182: add startupProbe to
csi-driver
.
The csi-driver-nfs container requires an NFS socket to be created before the csi-driver container can operate. If the socket is not available at startup, the pod will restart unnecessarily due to initialization failure. Using a postStart hook to check for the socket is not reliable, as Kubernetes does not guarantee the hook will execute before the container's entrypoint starts. This patch introduces a startupProbe to verify the existence of the NFS socket. The probe will run for up to one minute, allowing sufficient time for the socket to be created and avoiding premature pod restarts. The existing livenessProbe remains responsible for ongoing health checks.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters