Istio: Istio helm chart is failing to install

Created on 30 Jan 2019  路  3Comments  路  Source: istio/istio

Describe the bug

When using helm template and kubectl apply -f rendered-template.yaml I can work around the race condition bug when it can't find the CRDs. The workaround it to run the apply command once again in a few seconds.

However when I'm doing helm install it's failing on validation stage and not installing anything at all:

helm install ./ --name istio --namespace istio-system --values values.yaml --debug 

Error: validation failed: [unable to recognize "": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3", unable to recognize "": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3", unable to recognize "": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "handler" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "handler" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "handler" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "kubernetes" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "logentry" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "logentry" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "metric" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2", unable to recognize "": no matches for kind "rule" in version "config.istio.io/v1alpha2"]

Expected behavior

Expecting helm install command to work.

Steps to reproduce the bug

Try to install istio 1.0.5 using helm chart at 7b2897cf385ea1f7d33f77afacb33cc531106f41 commit.

Version

Trying to install istio 1.0.5.

Most helpful comment

how do you solve this problem锛孖 met the same error

On branch release-1.0, https://istio.io/docs/setup/kubernetes/helm-install/
helm install install/kubernetes/helm/istio --name istio --namespace istio-system

Will fail to start Istio pods, but will install all of Istio's CRDs:

$ kubectl get crds | grep istio
adapters.config.istio.io                2019-03-09T22:07:30Z
apikeys.config.istio.io                 2019-03-09T22:07:30Z
attributemanifests.config.istio.io      2019-03-09T22:07:30Z
authorizations.config.istio.io          2019-03-09T22:07:30Z
bypasses.config.istio.io                2019-03-09T22:07:30Z
checknothings.config.istio.io           2019-03-09T22:07:30Z
circonuses.config.istio.io              2019-03-09T22:07:30Z
deniers.config.istio.io                 2019-03-09T22:07:30Z
destinationrules.networking.istio.io    2019-03-09T22:07:30Z
edges.config.istio.io                   2019-03-09T22:07:30Z
envoyfilters.networking.istio.io        2019-03-09T22:07:30Z
fluentds.config.istio.io                2019-03-09T22:07:30Z
gateways.networking.istio.io            2019-03-09T22:07:30Z
handlers.config.istio.io                2019-03-09T22:07:30Z
httpapispecbindings.config.istio.io     2019-03-09T22:07:30Z
httpapispecs.config.istio.io            2019-03-09T22:07:30Z
instances.config.istio.io               2019-03-09T22:07:30Z
kubernetesenvs.config.istio.io          2019-03-09T22:07:30Z
kuberneteses.config.istio.io            2019-03-09T22:07:30Z
listcheckers.config.istio.io            2019-03-09T22:07:30Z
listentries.config.istio.io             2019-03-09T22:07:30Z
logentries.config.istio.io              2019-03-09T22:07:30Z
memquotas.config.istio.io               2019-03-09T22:07:30Z
meshpolicies.authentication.istio.io    2019-03-09T22:10:07Z
metrics.config.istio.io                 2019-03-09T22:07:30Z
noops.config.istio.io                   2019-03-09T22:07:30Z
opas.config.istio.io                    2019-03-09T22:07:30Z
policies.authentication.istio.io        2019-03-09T22:10:07Z
prometheuses.config.istio.io            2019-03-09T22:07:30Z
quotas.config.istio.io                  2019-03-09T22:07:30Z
quotaspecbindings.config.istio.io       2019-03-09T22:07:30Z
quotaspecs.config.istio.io              2019-03-09T22:07:30Z
rbacconfigs.rbac.istio.io               2019-03-09T22:07:30Z
rbacs.config.istio.io                   2019-03-09T22:07:30Z
redisquotas.config.istio.io             2019-03-09T22:07:30Z
reportnothings.config.istio.io          2019-03-09T22:07:30Z
rules.config.istio.io                   2019-03-09T22:07:30Z
servicecontrolreports.config.istio.io   2019-03-09T22:07:30Z
servicecontrols.config.istio.io         2019-03-09T22:07:30Z
serviceentries.networking.istio.io      2019-03-09T22:07:30Z
servicerolebindings.rbac.istio.io       2019-03-09T22:07:30Z
serviceroles.rbac.istio.io              2019-03-09T22:07:30Z
signalfxs.config.istio.io               2019-03-09T22:07:30Z
solarwindses.config.istio.io            2019-03-09T22:07:30Z
stackdrivers.config.istio.io            2019-03-09T22:07:30Z
statsds.config.istio.io                 2019-03-09T22:07:30Z
stdios.config.istio.io                  2019-03-09T22:07:30Z
templates.config.istio.io               2019-03-09T22:07:30Z
tracespans.config.istio.io              2019-03-09T22:07:30Z
virtualservices.networking.istio.io     2019-03-09T22:07:31Z

Then helm install again, with --no-crd-hook:
helm install install/kubernetes/helm/istio --name istio --namespace istio-system --no-crd-hook

Results in:

$ kubectl get pods --all-namespaces | grep -i istio
istio-system   istio-citadel-649cd9445c-6cvr9                              1/1       Running   0          10m
istio-system   istio-egressgateway-5d5657697b-vph2t                        1/1       Running   0          10m
istio-system   istio-galley-5ffd994c56-hpx4l                               1/1       Running   0          10m
istio-system   istio-ingressgateway-6b5b5998d5-cbjq9                       1/1       Running   0          10m
istio-system   istio-pilot-786dc4c88d-rmtfb                                2/2       Running   0          10m
istio-system   istio-policy-d4f59498f-qv46m                                2/2       Running   0          10m
istio-system   istio-sidecar-injector-7779c4c94b-nxlr7                     1/1       Running   0          10m
istio-system   istio-telemetry-75469b9fc5-6qnvg                            2/2       Running   0          10m
istio-system   prometheus-76b7745b64-gn9mj                                 1/1       Running   0          10m

Helm based install is fixed in release-1.1:

helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system
helm install install/kubernetes/helm/istio --name istio --namespace istio-system

All 3 comments

Never mind. I used Chart v1.1.0 and istio v.1.0.5

how do you solve this problem锛孖 met the same error

how do you solve this problem锛孖 met the same error

On branch release-1.0, https://istio.io/docs/setup/kubernetes/helm-install/
helm install install/kubernetes/helm/istio --name istio --namespace istio-system

Will fail to start Istio pods, but will install all of Istio's CRDs:

$ kubectl get crds | grep istio
adapters.config.istio.io                2019-03-09T22:07:30Z
apikeys.config.istio.io                 2019-03-09T22:07:30Z
attributemanifests.config.istio.io      2019-03-09T22:07:30Z
authorizations.config.istio.io          2019-03-09T22:07:30Z
bypasses.config.istio.io                2019-03-09T22:07:30Z
checknothings.config.istio.io           2019-03-09T22:07:30Z
circonuses.config.istio.io              2019-03-09T22:07:30Z
deniers.config.istio.io                 2019-03-09T22:07:30Z
destinationrules.networking.istio.io    2019-03-09T22:07:30Z
edges.config.istio.io                   2019-03-09T22:07:30Z
envoyfilters.networking.istio.io        2019-03-09T22:07:30Z
fluentds.config.istio.io                2019-03-09T22:07:30Z
gateways.networking.istio.io            2019-03-09T22:07:30Z
handlers.config.istio.io                2019-03-09T22:07:30Z
httpapispecbindings.config.istio.io     2019-03-09T22:07:30Z
httpapispecs.config.istio.io            2019-03-09T22:07:30Z
instances.config.istio.io               2019-03-09T22:07:30Z
kubernetesenvs.config.istio.io          2019-03-09T22:07:30Z
kuberneteses.config.istio.io            2019-03-09T22:07:30Z
listcheckers.config.istio.io            2019-03-09T22:07:30Z
listentries.config.istio.io             2019-03-09T22:07:30Z
logentries.config.istio.io              2019-03-09T22:07:30Z
memquotas.config.istio.io               2019-03-09T22:07:30Z
meshpolicies.authentication.istio.io    2019-03-09T22:10:07Z
metrics.config.istio.io                 2019-03-09T22:07:30Z
noops.config.istio.io                   2019-03-09T22:07:30Z
opas.config.istio.io                    2019-03-09T22:07:30Z
policies.authentication.istio.io        2019-03-09T22:10:07Z
prometheuses.config.istio.io            2019-03-09T22:07:30Z
quotas.config.istio.io                  2019-03-09T22:07:30Z
quotaspecbindings.config.istio.io       2019-03-09T22:07:30Z
quotaspecs.config.istio.io              2019-03-09T22:07:30Z
rbacconfigs.rbac.istio.io               2019-03-09T22:07:30Z
rbacs.config.istio.io                   2019-03-09T22:07:30Z
redisquotas.config.istio.io             2019-03-09T22:07:30Z
reportnothings.config.istio.io          2019-03-09T22:07:30Z
rules.config.istio.io                   2019-03-09T22:07:30Z
servicecontrolreports.config.istio.io   2019-03-09T22:07:30Z
servicecontrols.config.istio.io         2019-03-09T22:07:30Z
serviceentries.networking.istio.io      2019-03-09T22:07:30Z
servicerolebindings.rbac.istio.io       2019-03-09T22:07:30Z
serviceroles.rbac.istio.io              2019-03-09T22:07:30Z
signalfxs.config.istio.io               2019-03-09T22:07:30Z
solarwindses.config.istio.io            2019-03-09T22:07:30Z
stackdrivers.config.istio.io            2019-03-09T22:07:30Z
statsds.config.istio.io                 2019-03-09T22:07:30Z
stdios.config.istio.io                  2019-03-09T22:07:30Z
templates.config.istio.io               2019-03-09T22:07:30Z
tracespans.config.istio.io              2019-03-09T22:07:30Z
virtualservices.networking.istio.io     2019-03-09T22:07:31Z

Then helm install again, with --no-crd-hook:
helm install install/kubernetes/helm/istio --name istio --namespace istio-system --no-crd-hook

Results in:

$ kubectl get pods --all-namespaces | grep -i istio
istio-system   istio-citadel-649cd9445c-6cvr9                              1/1       Running   0          10m
istio-system   istio-egressgateway-5d5657697b-vph2t                        1/1       Running   0          10m
istio-system   istio-galley-5ffd994c56-hpx4l                               1/1       Running   0          10m
istio-system   istio-ingressgateway-6b5b5998d5-cbjq9                       1/1       Running   0          10m
istio-system   istio-pilot-786dc4c88d-rmtfb                                2/2       Running   0          10m
istio-system   istio-policy-d4f59498f-qv46m                                2/2       Running   0          10m
istio-system   istio-sidecar-injector-7779c4c94b-nxlr7                     1/1       Running   0          10m
istio-system   istio-telemetry-75469b9fc5-6qnvg                            2/2       Running   0          10m
istio-system   prometheus-76b7745b64-gn9mj                                 1/1       Running   0          10m

Helm based install is fixed in release-1.1:

helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system
helm install install/kubernetes/helm/istio --name istio --namespace istio-system
Was this page helpful?
0 / 5 - 0 ratings