You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup my LB in a more smart way to check the health of an api server and not just the port.
however without the api health endpoints this is not possible
I'm a bit confused regarding the not authorized as those endpoints should not need authorization.
or it's just a void message and the error 401 just means they don't exist in k3s.
These endpoints exist, they are just not accessible without authentication. The insecure port and anonymous auth are both disabled by default on modern versions of Kubernetes, so you'd need to find some way to authenticate your health checks (using a client cert, etc) kubernetes/kubernetes#43784 (comment)
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions.
Hi, it seems the api health checks healthz, livez , readyz and ever the older health are not available
https://kubernetes.io/docs/reference/using-api/health-checks/
I'm trying to setup my LB in a more smart way to check the health of an api server and not just the port.
however without the api health endpoints this is not possible
I'm a bit confused regarding the not authorized as those endpoints should not need authorization.
or it's just a void message and the error 401 just means they don't exist in k3s.
root@k8s-master02:~# curl -k https://localhost:6443/livez?verbose
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
}root@k8s-master02:~# curl -k https://localhost:6443/health
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
}root@k8s-master02:~# curl -k https://localhost:6443/healthz
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
}
The text was updated successfully, but these errors were encountered: