当前位置:网站首页>Istio deployment: quickly start microservices,
Istio deployment: quickly start microservices,
2022-07-02 19:43:00 【51CTO】
Download binary installation package
[[email protected] ~] # $ wget https://github.com/istio/istio/releases/download/1.11.8/istio-1.11.8-linux-amd64.tar.gz
[[email protected] ~] # tar zxvf istio-1.11.8-linux-amd64.tar.gz
[[email protected] ~] # cd istio-1.11.8/
[[email protected] ~] # ls
b i n L I C E N S E m a n i f e s t s m a n i f e s t . y a m l R E A D M E . m d s a m p l e s t o o l s
- 1.
- 2.
- 3.
- 4.
- 5.
samples: Sample application ;
bin: contain istioctl Client files for ,istioctl The tool is used for manual injection Envoy sidecar agent ( Side car agent )
install Istioctl
hold istioctl Copy this executable to /usr/bin/ Catalog
[[email protected] ~] # mv bin/istioctl /usr/local/bin/ # install Istioctl Client tools
[[email protected] ~] # istioctl install -y --set profile=demo
I s t i o c o r e i n s t a l l e d
I s t i o d i n s t a l l e d
I n g r e s s g a t e w a y s i n s t a l l e d
E g r e s s g a t e w a y s i n s t a l l e d
I n s t a l l a t i o n c o m p l e t e
T h a n k y o u f o r i n s t a l l i n g I s t i o 1 . 1 1 .
P l e a s e t a k e a f e w m i n u t e s t o t e l l u s a b o u t y o u r i n s t a l l / u p g r a d e e x p e r i e n c e !
h t t p s: / / f o r m s . g l e / k W U L B R j U v 7 h H c i 7 T 6
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
Install: Install or reconfigure on the cluster Istio.
--set profile=demo: Generate demo configuration file , Don't wait for confirmation
Image download
It is best to download every node , install istio Will automatically download when , But it is slow and may fail to download .
[[email protected] ~] # docker pull docker.io/istio/proxyv2:1.11.8
[[email protected] ~] # docker pull istio/pilot:1.11.8
[[email protected] ~] # docker pull istio/examples-bookinfo-details-v1:1.15.0
[[email protected] ~] # docker pull istio/examples-bookinfo-productpage-v1:1.16.2
[[email protected] ~] # docker pull istio/examples-bookinfo-reviews-v1:1.15.0
[[email protected] ~] # docker pull istio/examples-bookinfo-reviews-v2:1.15.0
[[email protected] ~] # docker pull istio/examples-bookinfo-reviews-v3:1.15.0
[[email protected] ~] # docker pull istio/examples-bookinfo-ratings-v1:1.15.0
[[email protected] ~] # docker pull kennethreitz/httpbin:latest
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
Service validation
1) verification Pod If there is something wrong
[[email protected] ~] # kubectl -n istio-system get pods
N A M E R E A D Y S T A T U S R E S T A R T S A G E
i s t i o - e g r e s s g a t e w a y - 6 6 8 5 4 b 8 4 d f - s n j 2 z 1 / 1 R u n n i n g 0 4 8 m
i s t i o - i n g r e s s g a t e w a y - 7 d f d 6 8 7 6 d f - 9 m 2 q 5 1 / 1 R u n n i n g 0 4 8 m
i s t i o d - 7 f 7 5 7 7 8 f 8 6 - c k k x 8 1 / 1 R u n n i n g 0 4 9 m
- 1.
- 2.
- 3.
- 4.
- 5.
Pod The service status is normal !
2) verification Service Whether the service is normal
You can see istio-ingressgateway Gateway service Service exception , This is because the service uses the public cloud access method , We are our own kubernetes Cluster environment , So it will be abnormal .
3) modify istio-ingressgateway Access to
Default installed istio-ingressgateway Service is based on LoadBalancer( Public cloud environment ) Way of exposure , The service department pending State and cannot be used normally , Need to change to NodePort Access to .
[[email protected] ~] # kubectl -n istio-system edit svc istio-ingressgateway
t y p e: N o d e P o r t # take L o a d B a l a n c e r repair Change by N o d e P o r t
s t a t u s:
[[email protected] ~] # kubectl -n istio-system get svc
i s t i o - i n g r e s s g a t e w a y N o d e P o r t 1 0 . 1 0 2 . 5 0 . 2 0 1 < n o n e >
- 1.
- 2.
- 3.
- 4.
- 5.
You can see that the service is normal .
Turn on default Automatic namespace injection
Mark the specified namespace istio-injection=enabled The label of ,istio There is to the namespace Pod Have injection permission .
[[email protected] ~] # kubectl label namespace default istio-injection=enabled
[[email protected] ~] # kubectl describe namespaces default | grep Labels
L a b e l s: i n j e c t i o n= e n a b l e d
- 1.
- 2.
- 3.
install Kiali And other plug-ins
Deploy Kiali instrument panel 、 as well as Prometheus、Grafana、 also Jaeger.
Grafana: visualization UI Interface , Exhibition Prometheus Monitoring data ;
Zipkin: Full link monitoring tool , Monitor the calling relationship between services ;
1) Install related plug-ins
[[email protected] ~] # ls samples/addons/
e x t r a s g r a f a n a . y a m l j a e g e r . y a m l k i a l i . y a m l p r o m e t h e u s . y a m l R E A D M E . m d
[[email protected] ~] # kubectl apply -f samples/addons/
[[email protected] ~] # kubectl rollout status deployment/kiali -n istio-system
[[email protected] ~] # kubectl -n istio-system get pod
N A M E R E A D Y S T A T U S R E S T A R T S A G E
g r a f a n a - 5 5 6 f 8 9 9 8 c d - g d g v d 1 / 1 R u n n i n g 0 2 m 4 s
j a e g e r - 5 f 6 5 f d b f 9 b - v v 7 b 5 1 / 1 R u n n i n g 0 2 m 4 s
k i a l i - 7 8 7 b c 4 8 7 b 7 - q 6 t v n 1 / 1 R u n n i n g 0 2 m 4 s
p r o m e t h e u s - 9 f 4 9 4 7 6 4 9 - p 7 s 7 k 2 / 2 R u n n i n g 0 2 m 4 s
[[email protected] ~] # kubectl -n istio-system get svc # see Service
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
2) Modify the service access method
The default service of the plug-in just deployed is ClusterIP, Unable to access related services in the browser , Need to change to NodePort.
[[email protected] ~] # kubectl -n istio-system edit grafana
t y p e: N o d e P o r t
[[email protected] ~] # kubectl -n istio-system edit svc kiali
t y p e: N o d e P o r t
- 1.
- 2.
- 3.
- 4.
3) Browser access Kiali instrument panel
It has been revised just now Kiali by nodeport Access to , Enter the node in the browser IP:port So we can visit .
[[email protected] ~] # kubectl -n istio-system get svc
k i a l i N o d e P o r t 1 0 . 9 6 . 5 3 . 1 4 5 < n o n e > 2 0 0 0 1: 3 2 1 6 2 / T C P , 9 0 9 0: 3 0 8 0 9 / T C P 2 2 m
- 1.
- 2.
uninstall istio colony
Uninstalling the cluster will not uninstall the installed plug-ins , The installed plug-ins have to be uninstalled separately .
边栏推荐
- R language uses econcharts package to create microeconomic or macroeconomic maps, and indifference function to visualize indifference curve
- Data Lake (XII): integration of spark3.1.2 and iceberg0.12.1
- MySQL function
- Kt148a voice chip IC software reference code c language, first-line serial port
- 451 implementation of memcpy, memmove and memset
- Dictionaries
- Postman下载安装
- AcWing 1127. Sweet butter solution (shortest path SPFA)
- Implementation of 453 ATOI function
- Use cheat engine to modify money, life and stars in Kingdom rush
猜你喜欢
Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
Notes on hardware design of kt148a voice chip IC
Data Lake (XII): integration of spark3.1.2 and iceberg0.12.1
Educational codeforces round 129 (rated for Div. 2) supplementary problem solution
Design and implementation of ks004 based on SSH address book system
KT148A语音芯片ic的硬件设计注意事项
Istio1.12: installation and quick start
Kt148a voice chip IC user end self replacement voice method, upper computer
KT148A语音芯片ic的用户端自己更换语音的方法,上位机
ShardingSphere-JDBC5.1.2版本关于SELECT LAST_INSERT_ID()本人发现还是存在路由问题
随机推荐
AcWing 1131. Saving Private Ryan (the shortest way)
《重构:改善既有代码的设计》读书笔记(下)
What is the Bluetooth chip ble, how to select it, and what is the path of subsequent technology development
What is the MySQL backup suffix_ MySQL backup restore
Introduction to mongodb chapter 03 basic concepts of mongodb
AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)
《MongoDB入门教程》第03篇 MongoDB基本概念
AcWing 1135. 新年好 题解(最短路+搜索)
How to avoid duplicate data in gaobingfa?
《代碼整潔之道》讀書筆記
Conscience summary! Jupyter notebook from Xiaobai to master, the nanny tutorial is coming!
Getting started with typescript
AcWing 1127. 香甜的黄油 题解(最短路—spfa)
从20s优化到500ms,我用了这三招
AcWing 1137. Select the best line solution (the shortest circuit)
LeetCode 0871.最低加油次数 - 类似于POJ2431丛林探险
SQLite 3.39.0 发布,支持右外连接和全外连接
程序猿入门攻略(十二)——数据的存储
Génération automatique de fichiers d'annotation d'images vgg
Py's interpret: a detailed introduction to interpret, installation, and case application