What would be the best way of verifying that the service behind the validator.longhorn.io webhook is up and healthy?
I need to do this throughout the process of following the best practice of removing a Kubernetes worker node that’s also a longhorn node.
And this is further needed because I’m removing nodes in the process of performing a rolling cluster upgrade … so one node goes ( drained and so on ) … and then the service behind the validator.longhorn.io webhook might not be fully ready on a new node.
Yes I’m also filtering out the needed longhorn workloads from the drain ….
Thank you 🤜🏽 🤛🏽 🙏
anyone with an idea on this one?
a
aloof-branch-69545
05/10/2023, 3:06 PM
webhook pod has readinessProbe setting
only when the pod is up and ready to serve the request will it become ready
so it there is any webhook pod running that means the service can serve the request
l
late-needle-80860
05/10/2023, 4:25 PM
Okay cool .. so basically control whether all webhook pods are ready to be on the safe side … and then execute what’s needed.