当前位置:网站首页>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 ...
边栏推荐
- The decline of China's product managers: starting from the nostalgia for jobs
- Siggraph 2022 | truly restore the hand muscles. This time, the digital human hands have bones, muscles and skin
- 【面试高频题】难度 3/5,可直接构造的序列 DP 题
- D. Solve the maze (thinking +bfs) codeforces round 648 (Div. 2)
- Istio FAQ: region awareness does not take effect
- Solution to the problem that FreeRTOS does not execute new tasks
- Goby+AWVS 实现攻击面检测
- Global and Chinese markets of stainless steel barbecue ovens 2022-2028: Research Report on technology, participants, trends, market size and share
- 期货怎么开户安全些?哪些期货公司靠谱些?
- One article explains Jackson configuration information in detail
猜你喜欢

Several common DoS attacks
![[interview high frequency questions] sequential DP questions with difficulty of 3/5 and direct construction](/img/32/720ffa63a90cd5d37460face3fde38.png)
[interview high frequency questions] sequential DP questions with difficulty of 3/5 and direct construction
![[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)](/img/21/503ed54a2fa14fbfd67f75a55ec286.png)
[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)

B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)

Recommend several super practical data analysis tools

C. Three displays codeforces round 485 (Div. 2)

How to expand disk space on AWS host

Implement Domain Driven Design - use ABP framework - domain logic & application logic

Cap: multiple attention mechanism, interesting fine-grained classification scheme | AAAI 2021
MySQL Advanced Series: locks - locks in InnoDB
随机推荐
MySQL日期时间戳转换
D. Solve The Maze(思维+bfs)Codeforces Round #648 (Div. 2)
构建Go命令行程序工具链
MySQL進階系列:鎖-InnoDB中鎖的情况
Linux record -4.22 MySQL 5.37 installation (supplementary)
Pytorch 转置卷积
[my advanced OpenGL learning journey] learning notes of OpenGL coordinate system
一文理解OpenStack网络
Most common usage of vim editor
My network relationship with "apifox"
MySQL InnoDB and MyISAM
Apple is no match for the longest selling mobile phone made in China, and has finally brought back the face of the domestic mobile phone
Fastjson 漏洞利用技巧
期货怎么开户安全些?哪些期货公司靠谱些?
Global and Chinese markets of natural insect repellents 2022-2028: Research Report on technology, participants, trends, market size and share
B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)
great! The novel website project is completely open source
60 divine vs Code plug-ins!!
Global and Chinese markets of Leyte coin exchange 2022-2028: Research Report on technology, participants, trends, market size and share
clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]