首页 文章

在Minikube上安装带Helm的Istio失败

提问于
浏览
0

在我的干净Ubuntu 16.04服务器上的文档中运行以下命令:

minikube start --memory=7168 --cpus=3 --kubernetes-version=v1.10.0 --vm-driver=kvm2
kubectl apply -f istio-1.0.4/install/kubernetes/helm/helm-service-account.yaml
helm init --service-account tiller --wait
helm install istio-1.0.4/install/kubernetes/helm/istio --name istio --namespace istio-system

但是,我没有成功安装,而是收到以下错误:

Error: release istio failed: customresourcedefinitions.apiextensions.k8s.io "envoyfilters.networking.istio.io" already exists

版本:

kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

istioctl version
Version: 1.0.4
GitRevision: d5cb99f479ad9da88eebb8bb3637b17c323bc50b
User: root@8c2feba0b568
Hub: docker.io/istio
GolangVersion: go1.10.4
BuildStatus: Clean

我已经尝试 minikube delete ,以及添加 rm -rf ~/.minikube 只是为了安全起见但我仍然遇到资源存在错误 . 有任何想法吗?

1 回答

  • 1

    好的,你不会喜欢这个 . 这似乎是helm v2.12.0的一个问题 .

    您需要降级到v2.11.0才能成功运行 . 我已经为你的helm安装包含了一些必要的更改,以使其在下面工作 .

    # download the right client version
    curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | DESIRED_VERSION=v2.11.0 bash
    
    # init the right tiller server
    helm init \
    --tiller-image gcr.io/kubernetes-helm/tiller:v2.11.0 \
    --service-account tiller
    

相关问题