kubernetes install_error ai_generated true

错误:找不到 tiller:服务器找不到请求的资源

Error: could not find tiller: the server could not find the requested resource

ID: kubernetes/helm-install-tiller-not-found

其他格式: JSON · Markdown 中文 · English
90%修复率
85%置信度
1证据数
2023-06-01首次发现

版本兼容性

版本状态引入弃用备注
Helm v2.16 active
Helm v2.17 active
Kubernetes v1.16 active

根因分析

Helm v2 客户端尝试连接到集群中未安装的 Tiller 服务器。

English

Helm v2 client is trying to connect to Tiller server which is not installed in the cluster.

generic

官方文档

https://helm.sh/docs/topics/tiller/

解决方案

  1. Install Tiller in cluster: `kubectl create serviceaccount --namespace kube-system tiller && kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller && helm init --service-account tiller`.
  2. Upgrade to Helm v3 which removes Tiller dependency: `brew upgrade helm` or download latest binary, then migrate releases: `helm 2to3 convert <release>`.
  3. If using Helm v2, check Tiller pod: `kubectl get pods -n kube-system | grep tiller`. If missing, deploy with `helm init`.

无效尝试

常见但无效的做法:

  1. Reinstall Helm client via brew/apt without upgrading 90% 失败

    Client version doesn't matter; Tiller must be deployed separately.

  2. Set HELM_HOST environment variable to a random IP 95% 失败

    Tiller must be a running pod in the cluster, not an arbitrary IP.

  3. Use `helm init --client-only` to install client only 90% 失败

    Client-only mode does not deploy Tiller; you still need Tiller running.