在干净的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
,但是仍然出现资源存在错误。有什么想法吗?
答案 0 :(得分:1)
好的,你不会喜欢这样的。头盔v2.12.0似乎有问题。
您需要降级到v2.11.0才能成功运行。我对您的头盔安装进行了一些必要的更改,以使其在下面工作。
# 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