错误:错误安装:服务器找不到请求的资源 HELM Kubernetes [英] Error: error installing: the server could not find the requested resource HELM Kubernetes

查看:27
本文介绍了错误:错误安装:服务器找不到请求的资源 HELM Kubernetes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了什么:
我用

curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
helm init --history-max 200


出现错误:

$HELM_HOME has been configured at /root/.helm.
Error: error installing: the server could not find the requested resource

  1. 这个错误是什么意思?
  2. 我应该如何安装 Helm 和 Tiller?

Ubuntu 版本:18.04
Kubernetes 版本:1.16
头盔版本:

Ubuntu version: 18.04
Kubernetes version: 1.16
Helm version:

helm version
Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Error: could not find tiller

更新:
我尝试了@shawndodo 的回答,但仍然没有安装分蘖

Update:
I tried @shawndodo's answer but still tiller not installed

helm init --service-account tiller --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm'
--output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | kubectl apply -f -

更新 2:
helm init --history-max 200 在 kubernetes 1.15 版中工作

Update 2:
helm init --history-max 200 working in kubernetes version 1.15

推荐答案

我遇到了同样的问题,然后在此处.

I met the same problem, then I found this reply on here.

helm init --service-account tiller --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | kubectl apply -f -

它对我有用.您可以在此问题中查看详细信息.

It works for me. You can see the detail in this issue.

这篇关于错误:错误安装:服务器找不到请求的资源 HELM Kubernetes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆