Istio 1.1尝鲜记

网友投稿 231 2022-11-11

Istio 1.1尝鲜记

近几天Istio1.1的发布引起了技术界巨大的反响,为了让更多技术爱好者能够亲自体验Istio1.1,公司的技术大佬赶出了这篇尝鲜教程,其中包括环境、安装、可能遇到的问题及解决方式等,希望对大家有所帮助。

环境

已经安装了 Kubernetes 集群,有1个 master 和4个 node。操作系统都是 CentOS Linux 7。

下载 Istio 安装文件

curl -L | ISTIO_VERSION=1.1.0 sh - export PATH="$PATH:/root/istio-1.1.0/bin"

安装 Tiller

这里选择在 Helm 和 Tiller 的环境中使用 helm install 命令进行安装的方式。

kubectl apply -f install/kubernetes/helm/helm-service-account.yaml

helm init --service-account tiller

安装 istio-init chart

更新 Helm 的本地包缓存:

helm repo add istio.io "install istio.io/istio-init --name istio-init --namespace istio-system

确认 Istio 的 CRD 都已经成功的提交给 Kubernetes API Server:

kubectl get crds | grep 'istio.io\|certmanager.k8s.io' | wc -l 55

安装 istio

helm install install/kubernetes/helm/istio --name istio --namespace istio-system \ --set tracing.enabled=true \ --set jaeger.enabled=true \ --set grafana.enabled=true \ --set kiali.enabled=true \ --set "kiali.dashboard.jaegerURL=\ --set "kiali.dashboard.grafanaURL= istio LAST DEPLOYED: Wed Mar 20 02:19:04 2019 NAMESPACE: istio-system STATUS: DEPLOYED RESOURCES: ==> v1/ClusterRole NAME AGE istio-citadel-istio-system 2m17s istio-galley-istio-system 2m17s istio-grafana-post-install-istio-system 2m17s istio-ingressgateway-istio-system 2m17s istio-mixer-istio-system 2m17s istio-pilot-istio-system 2m17s istio-reader 2m17s istio-sidecar-injector-istio-system 2m17s kiali 2m17s prometheus-istio-system 2m17s ...这里省略一部分输出... NOTES: Thank you for installing istio. Your release is named istio. To get started running application with Istio,`` execute the following steps: 1. Label namespace that application object will be deployed to by the following command (take default namespace as an example) $ kubectl label namespace default istio-injection=enabled $ kubectl get namespace -L istio-injection 2. Deploy your applications $ kubectl apply -f .yaml For more information on running Istio, visit: 需要的镜像拉不下来

kubectl describe po istio-init-crd-10-vmq9p -n istio-system

安装完成后,给 kiali 创建 ingress 成功但是浏览器访问结果是404

解决:直接访问域名不会自动跳转,需要加 /kiali/console 才能进入登陆界面

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:KUKA8.3系统WorkVisual AddOnVKR控制心得
下一篇:springboot内置tomcat调优并发线程数解析
相关文章

 发表评论

暂时没有评论,来抢沙发吧~