If the service is running, it's connected. If it cant connect to any server, the service will exit and be restarted continuously by systemd until it can get a connection.
creamy-pencil-82913
09/07/2022, 12:35 AM
So, just a basic service uptime/restart counter check should suffice for gross health checking
creamy-pencil-82913
09/07/2022, 12:35 AM
If you need something more granular than that, the kubelet has a poorly documented API that you could probably query
c
calm-france-2744
09/07/2022, 12:37 AM
Awesome, it sounds like just checking the systemd service status will actually work for me then!