Serving: Running kubectl apply istio partially succeeds the first tiime.

Created on 6 Feb 2019  路  4Comments  路  Source: knative/serving

Expected Behavior

Refer to https://github.com/knative/docs/blob/master/install/Knative-with-Minikube.md instruction to install knative. Executing kubectl apply to install istio should success without error.

  curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml \\
  | sed 's/LoadBalancer/NodePort/' \\
  | kubectl apply --filename -

Actual Behavior

The kubectl apply only partial succeeded. The following errors are observed. Running the 'kubectl apply` command again can work around the issue.

unable to recognize "STDIN": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3"
unable to recognize "STDIN": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "stdio" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "logentry" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "logentry" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "metric" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "prometheus" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "kubernetesenv" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "kubernetes" in version "config.istio.io/v1alpha2"
unable to recognize "STDIN": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3"
unable to recognize "STDIN": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3"

Steps to Reproduce the Problem

  1. Follow instructions in https://github.com/knative/docs/blob/master/install/Knative-with-Minikube.md
  2. Observe the errors in stdout after installation of istio

Additional Info

arenetworking kinbug kincleanup kindoc kingood-first-issue

Most helpful comment

I ran:

curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio-crds.yaml \
  | kubectl apply --filename -

Then:

curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml \
  | sed 's/LoadBalancer/NodePort/' \
  | kubectl apply --filename -

And everything came up correctly this time.

All 4 comments

We have a seperate istio-crds.yaml to solve this issue I think. Is this a matter of adjusting the documentation to reference that?

For now, yes - I believe we just need to adjust the docs.

cc @RichieEscarez @samodell

This issue seems like it belongs in knative/docs, but I'm not sure if documenting how to install Istio is a feature or a bug :)

I ran:

curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio-crds.yaml \
  | kubectl apply --filename -

Then:

curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml \
  | sed 's/LoadBalancer/NodePort/' \
  | kubectl apply --filename -

And everything came up correctly this time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xpepermint picture xpepermint  路  6Comments

bbrowning picture bbrowning  路  6Comments

mattmoor picture mattmoor  路  7Comments

mattmoor picture mattmoor  路  5Comments

vtereso picture vtereso  路  5Comments