有没有办法在 Azure AKS 中打开从代理节点到主节点的代理?

Is there a way to open a proxy from the agent nodes to the master in Azure AKS?

使用 kubectl proxy 我可以打开从我的机器到我当前上下文的 kubernetes 集群中的主节点的代理。

有什么方法可以从 Azure AKS 中的托管群集的节点执行相同的操作?


对于上下文,我想做的是使用 Linkerd backed by k8s service discovery,但目前不支持 TLS,他们的文档中的建议是 运行 kubectl proxy 在每个节点上。

您可以 运行 在 pod 中与 Linkerd 一起 kubectl proxy 容器。例如:

- name: kubectl image: buoyantio/kubectl:v1.8.5 args: - "proxy" - "-p" - "8001"

完整示例: https://github.com/linkerd/linkerd-examples/blob/99e33284860a35228dccc23a8810374b02f24c26/k8s-daemonset/k8s/linkerd.yml#L103