This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Liveness probes serve as a fallback mechanisms for cases where the container gets stuck but fails to terminate. We piggy-back onto the metrics endpoint with HTTP probes because that endpoint is readily available and, in the case of the PMEM-CSI node driver, already does some work that mirrors what the driver needs to do during operation (interact with underlying storage to retrieve capacity). A startup probe is used because the node driver might start up more slowly when setting up LVM. We can also add that for direct mode for the sake of simplicity. The liveness probes could be useful, although in practice the node driver should already terminate if it runs into fatal issues, so we probably won't need to rely on the probe. To avoid potential false positives (killing the container although it only had a temporary outage), the threshold is 5. Readiness probes make less sense. The node driver does not do any load balancing. It might make sense if we had more than one instance and let the scheduler access only ready instances, but right now we only have one instance.
- Loading branch information
Showing
29 changed files
with
1,197 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
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
Oops, something went wrong.