能否通过HTTP或TCP对Kubernetes API服务器进行健康检查?

11

我需要在DigitalOcean上负载均衡一组Kubernetes API服务器(版本1.7),但问题是Kubernetes API服务器似乎只支持HTTPS,而DigitalOcean负载均衡器只能进行HTTP或TCP健康检查

有没有办法通过HTTP或TCP执行Kubernetes API服务器的健康检查?

2个回答

6

执行 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,

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接