【问题标题】:Running helm commands in a pod with istio-proxy使用 istio-proxy 在 pod 中运行 helm 命令
【发布时间】:2019-04-10 01:32:43
【问题描述】:

我正在使用 istio-1.1.1。我有一个基本上可以运行 helm 命令的 pod。 如果我禁用istio-proxy,我可以轻松运行类似的命令

helm status --debug
[debug] Created tunnel using local port: '41683'

[debug] SERVER: "127.0.0.1:41683"

端口号每次都会变化。

但是,当我启用istio-proxy 时,我收到以下错误:

# helm status --debug
Error: an error on the server ("") has prevented the request from succeeding (get pods)`

如何调试此问题? 和出口有关系吗?

【问题讨论】:

  • 您是否尝试将 Istio sidecar 注入到 Tiller Pod 中?

标签: google-kubernetes-engine kubernetes-helm istio


【解决方案1】:

据我了解,Helm 客户端使用一些随机端口来尝试连接到最初侦听端口 44134 的特定 Tiller pod,因此我假设任何 Helm 客户端命令都会强制执行一些端口转发,即kubectl port-forward 从随机端口到目标端口。虽然,您的 Tiller Pod 不能包含在 Envoy 代理配置中(sidecar 未注入),因此 Tiller Pod 的容器端口仍然不会暴露给 Istio proxy-config

您可以尝试在官方 Istio tutorial 中通过 istioctl 获取有关调试 Envoy 代理的更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-14
    • 2021-07-13
    • 1970-01-01
    相关资源
    最近更新 更多