报错1:
horizontalpodautoscaler.autoscaling/istio-pilot created mutatingwebhookconfiguration.admissionregistration.k8s.io/istio-sidecar-injector created unable to recognize “/root/istio.yaml”: no matches for kind “attributemanifest” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “attributemanifest” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “handler” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “handler” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “rule” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “instance” in version “config.istio.io/v1alpha2” unable to recognize “/root/istio.yaml”: no matches for kind “DestinationRule” in version “networking.istio.io/v1alpha3” unable to recognize “/root/istio.yaml”: no matches for kind “DestinationRule” in version “networking.istio.io/v1alpha3”
解决办法:
for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
再次重新安装即可
kubectl apply -f $HOME/istio.yaml