我需要在DigitalOcean上负载均衡一组Kubernetes API服务器(版本1.7),但问题是Kubernetes API服务器似乎只支持HTTPS,而DigitalOcean负载均衡器只能进行HTTP或TCP健康检查。
有没有办法通过HTTP或TCP执行Kubernetes API服务器的健康检查?
我需要在DigitalOcean上负载均衡一组Kubernetes API服务器(版本1.7),但问题是Kubernetes API服务器似乎只支持HTTPS,而DigitalOcean负载均衡器只能进行HTTP或TCP健康检查。
有没有办法通过HTTP或TCP执行Kubernetes API服务器的健康检查?
执行 kubectl proxy,然后使用 Postman 或其他工具向 http://127.0.0.1:8001/healthz/poststarthook/apiservice-status-available-controller 发送 GET 请求。
你也可以使用以下地址:
/healthz
,/healthz/autoregister-completion
,/healthz/ping
,/healthz/poststarthook/apiservice-registration-controller
,/healthz/poststarthook/apiservice-status-available-controller
,/healthz/poststarthook/bootstrap-controller
,/healthz/poststarthook/ca-registration
,/healthz/poststarthook/extensions/third-party-resources
,/healthz/poststarthook/generic-apiserver-start-informers
,/healthz/poststarthook/kube-apiserver-autoregistration
,/healthz/poststarthook/start-apiextensions-controllers
,/healthz/poststarthook/start-apiextensions-informers
,/healthz/poststarthook/start-kube-aggregator-informers
,/healthz/poststarthook/start-kube-apiserver-informers
,/healthz
端点,如果API服务器正常运行,您将获得一个状态码为200的响应体,内容为ok
。