当前位置:网站首页>Why learn istio
Why learn istio
2022-07-20 12:15:00 【Lao Duan studio】
Istio Is running on the kubernetes A service grid on (Service Mesh, Third generation microservice Architecture ), Greatly expanded kubernetes The function of , It can be easily achieved than kubernetes Flow management with finer granularity .
When we are directly in kubernetes When deploying an application , Sometimes it is difficult to realize some special needs , Like the Canary release ( Also known as grayscale publishing ).
Canary publishing works like this , We already have an old version of the application here called v1, Then we will release a new version of the application, which is called v2. But now I don't want all clients to access v2, I just want to open some clients for testing in a small range .
So we can set 90% Traffic forwarded to v1,10% Traffic forwarded to v2. If this 10% User feedback v2 Not bad , Then we can expand our visit v2 Of traffic , Narrow access v1 Of traffic .
And so on , Until all the traffic is gradually transferred to v2 above .
without istio The way of implementation is like this , Create two deployment, One is v1 One v2. They created pod Have the same label for service relation . First v1 Set up 3 Copies ,v2 Set up a copy , such 75% All traffic is forwarded to v1 Yes , Go to 25% Traffic forwarded to v2 On .
Then we can shrink v1 Number of copies , increase v2 To modify the flow direction , Here's the picture .
But the flow control is too rough , And it is too troublesome to maintain .
But we are istio It is very convenient to realize . The following is taken from a VirtualService( Referred to as vs) Part of the code in , We changed it weight You can modify the flow direction .
- destination:
host: svc1
subset: v1
weight: 65
- destination:
host: svc1
subset: v2
weight: 35
Here is designated to pod1 Of traffic 65%, Go to pod2 Of traffic 35%, Then look at the flow direction through the figure below .
And then we modify it again weight.
- destination:
host: svc1
subset: v1
weight: 35
- destination:
host: svc1
subset: v2
weight: 65
Set here to pod1 go 35% Of traffic , Go to pod2 go 65% Of traffic , And then look at the picture below .
We just need to change the weight You can easily forward to pod Of traffic . In addition to the Canary release above , We want to achieve blue-green deployment 、A/B test 、 Conversation retention 、 Traffic mirroring and other functions can be easily realized , therefore istio Its strength lies in its traffic management .
If we want different clients (Android、windows、firefox、chrome etc. ) Visit different pod On ,istio It can also be easily realized . in addition istio It also provides strong observability , Because we installed kiali, You can also easily see the flow direction .
istio It also provides us with more powerful security management , Including passage AuthorizationPolicy Do more detailed authorization management 、pod Between mTLS Certification, etc , Greatly improved pod The security of .
With the advancement of open source and cloud computing , As the core technology, cloud native microservices have maintained rapid growth ; With the maturity of microservice Technology , Began to penetrate all walks of life . On the one hand, labor costs are rising , It is imperative to adopt micro services to improve R & D efficiency .
So learning CKA after , If you can learn systematically istio It is bound to bring great benefits to everyone's career development .
Wechat Consulting
边栏推荐
- 为什么要学习Istio
- Digital image processing (Gonzalez) learning Chapter 3 gray scale transformation and spatial filtering
- Those configuration parameters of skywalking
- 【golang学习笔记1.7】 golang中的函数得使用
- 20220710 leetcode week: move the clip to get the string
- 源码编译安装LAMP
- 模糊pid控制的直流调速系统的建模与仿真
- DOM系列之DOM介绍及获取
- Cloud Foundry 开发者之课程 (LFD232) 3. core concepts
- Gauss mathematics -- watching animation and Learning Mathematical Olympiad
猜你喜欢
opencv(12):cv::rectangle学习与代码演示,使用opencv画矩形/矩形框
Okaleido or get out of the NFT siege, are you optimistic about it?
22. Network principle - key protocol in tcp/ip four layer model (1)
2022牛客多校联赛第一场 题解
Okaleido或杀出NFT重围,你看好它吗?
基于MATLAB的无限脉冲响应数字滤波器的设计与仿真
IPv6-ICMPv6协议
Chrome Basics
关系抽取—OneRel
Research on PWM control system of five phase permanent magnet motor
随机推荐
美女直播首用LDR6028无线麦克风音质传输OTG充电持续输出
Optimization case 2: select scalar subquery and sort main query
Why can't you restore your favorites by copying 360bookmarks to your new computer? Because it's encrypted, you can use 360sefav_ Date Favdb and 360default_ ori_ Date Favdb two favorite backup files im
Those configuration parameters of skywalking
Style migration -- sanet: pay attention to any style conversion under the network
Fractional PID control and vector control permanent magnet motor
Pyqt5 learning resource preparation and environment configuration
MySQL学习笔记——存储过程和函数
22、网络原理——TCP/IP四层模型之中的重点协议(1)
Attribute operation of DOM series elements
Matlab finite element calculation
Appium automation test foundation - operating wechat applet
The LAAS protocol elephant of defi 2.0 is the key to revitalizing the development of defi track
Mathematics learning in Xinao: video collection of mathematics in primary school, junior high school and senior high school
2022牛客多校联赛第一场 题解
双亲委派机制
GameFi 行业下滑但未出局| June Report
File, exception, module
Reptile exercises (III)
恢复360收藏夹方法 电脑损坏、重装系统后,把360sefav_new_2021_07_16.favdb这种文件,复制到别的电脑上,含有字符new的文件是加密的无法恢复