安装istio
Istio / 入门
[root@master ~]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- -- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --100 102 100 102 0 0 86 0 0:00:01 0:00:01 --:--:-- 86
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --100 4899 100 4899 0 0 2222 0 0:00:02 0:00:02 --:--:-- 9313
******省略******
Need more information? Visit https://istio.io/latest/docs/setup/install/
[root@master ~]
anaconda-ks.cfg istio-1.22.0 kube-flannel.yml
[root@master ~]
[root@master istio-1.22.0]
bin LICENSE manifests manifest.yaml README.md samples tools
[root@master istio-1.22.0]
[root@master bin]
istioctl
[root@master bin]
[root@master bin]
isosize istioctl
[root@master istio-1.22.0]
✔ Istio core installed
✔ Istiod installed
✔ Egress gateways installed
✔ Ingress gateways installed
✔ Installation complete Made this installation the default for injection and validation.
[root@master istio-1.22.0]
namespace/default labeled
[root@master istio-1.22.0]
service/details created
serviceaccount/bookinfo-details created
deployment.apps/details-v1 created
service/ratings created
serviceaccount/bookinfo-ratings created
deployment.apps/ratings-v1 created
service/reviews created
serviceaccount/bookinfo-reviews created
deployment.apps/reviews-v1 created
deployment.apps/reviews-v2 created
deployment.apps/reviews-v3 created
service/productpage created
serviceaccount/bookinfo-productpage created
deployment.apps/productpage-v1 created
[root@master istiod]
NAME READY STATUS RESTARTS AGE
details-v1-cf74bb974-xsppk 2/2 Running 0 10m
productpage-v1-87d54dd59-6hdmb 2/2 Running 0 10m
ratings-v1-7c4bbf97db-qhzcp 2/2 Running 0 10m
reviews-v1-5fd6d4f8f8-tk58c 2/2 Running 0 10m
reviews-v2-6f9b55c5db-zhjh5 2/2 Running 0 10m
reviews-v3-7d99fd7978-8nprb 2/2 Running 0 10m
two-deployment-d9554f944-84l94 1/1 Running 0 5h40m
two-deployment-d9554f944-8jldq 1/1 Running 0 5h40m
two-deployment-d9554f944-w4mgw 1/1 Running 0 5h40m
[root@master istiod]
[root@master istio-1.22.0]
<title>Simple Bookstore App</title>
<h4 class="modal-title">Please sign in</h4>
[root@master istio-1.22.0]
[root@master istio-1.22.0]
gateway.networking.istio.io/bookinfo-gateway created
virtualservice.networking.istio.io/bookinfo created
[root@master istio-1.22.0]
✔ No validation issues found when analyzing namespace: default
istioctl kube-inject -f my-deployment.yaml -o my-deployment-injected.yaml
[root@master istio-1.22.0]
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-ingressgateway NodePort 10.101.221.20 <none> 15021:32616/TCP,80:31642/TCP,443:31040/TCP,31400:32024/TCP,15443:30184/TCP 6h12m
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
export INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].status.hostIP}')
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
[root@master istio-1.22.0]
10.104.43.196:31642
[root@master istio-1.22.0]
http://10.104.43.196:31642/productpage
安装kiali仪表盘
[root@master istio-1.22.0]
[root@master istio-1.22.0]
Waiting for deployment "kiali" rollout to finish: 0 of 1 updated replicas are available...
deployment "kiali" successfully rolled out
[root@master istio-1.22.0]
http://localhost:20001/kiali
Failed to open browser; open http://localhost:20001/kiali in your browser.
[root@master istio-1.22.0]
kiali NodePort 10.97.183.177 <none> 20001:30140/TCP,9090:31574/TCP 91m
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· Qt个人项目总结 —— MySQL数据库查询与断言