当前位置:网站首页>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 ...
边栏推荐
- Remain true to our original aspiration
- Understanding of deep separable convolution, block convolution, extended convolution, transposed convolution (deconvolution)
- 对深度可分离卷积、分组卷积、扩张卷积、转置卷积(反卷积)的理解
- 企业安全攻击面分析工具
- Using alicloud RDS for SQL Server Performance insight to optimize database load - first understanding of performance insight
- 60 divine vs Code plug-ins!!
- 转置卷积学习笔记
- The equipment is connected to the easycvr platform through the national standard gb28181. How to solve the problem of disconnection?
- Logging is not as simple as you think
- Installer la Bibliothèque imagemagick 7.1 et l'extension imagick de PHP
猜你喜欢

Cap: multiple attention mechanism, interesting fine-grained classification scheme | AAAI 2021

几种常见的DoS攻击

ZOJ——4104 Sequence in the Pocket(思维问题)

Several common DoS attacks

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

Logging is not as simple as you think

Here comes Wi Fi 7. How strong is it?
![[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

Solution to the problem that FreeRTOS does not execute new tasks

【应用推荐】最近大火的Apifox & Apipost 上手体验与选型建议
随机推荐
Using oasis to develop a hop by hop (I) -- Scene Building
存在安全隐患 部分冒险家混动版将召回
[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)
Three solutions for Jenkins image failing to update plug-in Center
MySQL timestamp format conversion date format string
Golang+redis distributed mutex
Goby+AWVS 实现攻击面检测
一文详解JackSon配置信息
How to easily realize online karaoke room and sing "mountain sea" with Wang Xinling
Istio FAQ: return 426 status code
2021-05-02: given the path of a file directory, write a function
Nifi from introduction to practice (nanny level tutorial) - environment
Goby+awvs realize attack surface detection
Why is it easy for enterprises to fail in implementing WMS warehouse management system
Flink Kubernetes Application部署
MySQL development specification
Enterprise security attack surface analysis tool
Rush for IPO, Hello, I'm in a hurry
Parameterized tests guide in junit5
Global and Chinese market of insect proof clothing 2022-2028: Research Report on technology, participants, trends, market size and share