k8s1.15安装istio时问题记录

时间:2022-07-22
本文章向大家介绍k8s1.15安装istio时问题记录,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

报错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