当前位置:网站首页>Kubernetes characteristic research: sidecar containers
Kubernetes characteristic research: sidecar containers
2022-06-24 16:15:00 【imroc】
This article excerpts from Kubernetes Learning notes
background
K8S in Pod If there are more than one container, Normally, it will be started or destroyed at the same time , However, some scenarios depend on the order in which containers are started or destroyed , There may be some problems , For example istio Scene :
- Pod Startup time : Business container ratio istio-proxy First ready. Application of containerization transition , When the business container starts, it needs to call other services ( For example, pull the configuration from the configuration center ), If you fail, quit , There is no retry logic , And when envoy When starting slower , The business container failed to call other services , Lead to pod Boot failure , So circular ( Reference resources k8s issue #65502 , Solution reference istio common problem : Sidecar Start sequence problem ) .
- Pod At the time of destruction : Business containers and envoy Received at the same time SIGTERM,envoy No more incremental connections , But the business container is graceful shutdown You may need to call another service during the process ( For example, notify other cleaners to clean up ), Now envoy Just reject the new request , Cause the call to fail ( Reference resources istio issue #7136 , Solution reference istio common problem : Sidecar Stop sequence problem ).
Initiate a proposal
Many people in the community have encountered similar problems , It was first suggested that Proposal To solve :
- stay 2018-05, Joseph Irving launch Sidecar Containers Of KEP
- Later on 2018-11 KEP By Accept .
- And then 2019-01 The author has opened a new issue #753 To follow up on this feature .
The proposal was abandoned
After two years of design and development , stay 2020-10 The community is divided , Finally announce the KEP Abandoned , See the author's Comment on .
There are also articles that have caused trouble , call 1.18 Will support sidecar characteristic : [Sidecar container lifecycle changes in Kubernetes 1.18
](https://banzaicloud.com/blog/k8s-sidecars/) , But it turned out that in the end , And it was abandoned .
The reason summary
To sum up, the reason is , Many related questions are related to pod Life cycle management , There are many scenarios involved , It's not just limited to oneortwo scenarios . We can't create a feature for every scenario to solve , It needs to be solved by a new proposal that can solve all problems from a higher level .
Discuss new proposals
And then , The community launched sidecar Collection of relevant scenarios and requirements Sidecar use cases/requirements , I was impressed by :
- Job Exit after running , but istio sidecar Will not quit , Lead to Job Never quit (Job Need to wait for all container Stop is exit )
- upgrade sidecar Version will restart all Pod, Not friendly to large clusters , Can support a single container Just upgrade
And then in 2020-11,Tim Hockin (K8S chief ) Launch a new Proposal draft .
Latest progress
And then there's no then , I haven't found anything related to this feature recently , It may cover many scenes , More complex designs are needed , I can't think about it so quickly ...
边栏推荐
- Nature publishes significant progress in quantum computing: the first quantum integrated circuit implementation in history
- The catch-up of domestic chips has scared Qualcomm, the leader of mobile phone chips in the United States, and made moves to cope with the competition
- Some experiences of project K several operations in the global template
- 构建Go命令行程序工具链
- Using alicloud RDS for SQL Server Performance insight to optimize database load - first understanding of performance insight
- 2021-04-24: handwriting Code: topology sorting.
- The decline of China's product managers: starting from the nostalgia for jobs
- ThinkPHP 漏洞利用工具
- C. K-th Not Divisible by n(数学+思维) Codeforces Round #640 (Div. 4)
- 【应用推荐】最近大火的Apifox & Apipost 上手体验与选型建议
猜你喜欢
![[download attached] installation and simple use of Chinese version of awvs](/img/3b/f26617383690c86edff465c9a1099e.png)
[download attached] installation and simple use of Chinese version of awvs
MySQL進階系列:鎖-InnoDB中鎖的情况

Most common usage of vim editor
![clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]](/img/f0/42f394dbc989d381387c7b953d2a39.jpg)
clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]

一文详解JackSon配置信息

构建Go命令行程序工具链

One article explains Jackson configuration information in detail
![[my advanced OpenGL learning journey] learning notes of OpenGL coordinate system](/img/21/48802245fea2921fd5e4a9a2d9ad18.jpg)
[my advanced OpenGL learning journey] learning notes of OpenGL coordinate system

Wechat official account debugging and natapp environment building
Advanced programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization
随机推荐
ZOJ - 4104 sequence in the pocket
SQL multi table updating data is very slow
山金期货安全么?期货开户都是哪些流程?期货手续费怎么降低?
Global and Chinese markets of Leyte coin exchange 2022-2028: Research Report on technology, participants, trends, market size and share
Several characteristics of pharmaceutical industry
2021-05-04: given a non negative integer C, you need to judge whether there are two integers a and B, so that a*a+b*b=c.
My network relationship with "apifox"
B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)
ThinkPHP vulnerability exploitation tool
期货怎么开户安全些?哪些期货公司靠谱些?
Istio FAQ: failed to resolve after enabling smart DNS
How does the effective date of SAP PP ECM affect the work order?
Database tools in intelij can connect but cannot display schema, tables
炒期货在哪里开户最正规安全?怎么期货开户?
Inter thread communication of embedded development foundation
C. Three displays(动态规划)Codeforces Round #485 (Div. 2)
Wechat official account debugging and natapp environment building
Golang+redis distributed mutex
Still worried about missing measurements? Let's use Jacobo to calculate the code coverage
Using oasis to develop a hop by hop (I) -- Scene Building