istio: Helm installation ends with error

Describe the bug {{ Succinctly describe the bug }}

Im trying to install istio (current versio 1.0.5) on fresh kubernetes installation.

curl -L https://git.io/getLatestIstio | sh - ISTIO_VERSION=$(ls | grep istio- ) cd $ISTIO_VERSION helm install install/kubernetes/helm/istio --name istio --namespace istio-system

Im gettin g error:

Error: release istio failed: customresourcedefinitions.apiextensions.k8s.io “noops.config.istio.io” already exists

I’ve tested it many times on fresh Kubernetes.

If I run : kubectl apply -f install/kubernetes/istio-demo.yaml it works fine.

I have problem with helm only.

Version {{ What version of Istio and Kubernetes are you using? Use istioctl version and kubectl version }}

root@k8smaster:~/istio-1.0.5# kubectl version Client Version: version.Info{Major:“1”, Minor:“13”, GitVersion:“v1.13.1”, GitCommit:“eec55b9ba98609a46fee712359c7b5b365bdd920”, GitTreeState:“clean”, BuildDate:“2018-12-13T10:39:04Z”, GoVersion:“go1.11.2”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“13”, GitVersion:“v1.13.1”, GitCommit:“eec55b9ba98609a46fee712359c7b5b365bdd920”, GitTreeState:“clean”, BuildDate:“2018-12-13T10:31:33Z”, GoVersion:“go1.11.2”, Compiler:“gc”, Platform:“linux/amd64”}

Installation {{ Please describe how Istio was installed }}

Environment

It’s kubernetes on 4 bare metal nodes

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

I ran into this issue as well while running through the quick-start walkthrough at https://istio.io/docs/setup/kubernetes/quick-start/ with a “side-quest” at https://istio.io/docs/setup/kubernetes/helm-install/

It looks like this was a result of confusing documentation. If you read the instructions carefully on the “Installation with Helm” page, you can see that the command:

kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

should only be run if you’re using Helm versions before 2.10.0. The same line on the quick-start page does not call this out, so I had already run it before attempting the helm install. The fix was to delete the CRDs created earlier by (carefully) running:

kubectl delete crd --namespace istio-system --all

and then continuing with the Helm install.

We are not talking about delete/purge Istio. We are talking about creating Istio with helm in fresh kubernetes installation.

Everytime i try to install with helm I get error. Everythime this error refers to different customresourcedefinitions.

I’m pretty sure it worked week or two ago.

I can confirm. It works with newest version.

@mkinoshi: You may need to delete the CRDs manually. I think that is what I ended up doing.

@marcin-kasinski @jstol: There is a helm bug with CRDs that is causing this. Upgrading to helm/tiller v2.12.1 and installing worked for me. You may have to delete/purge your existing Istio install as well.

edit: See https://github.com/istio/istio/issues/7688