3 ms·
Any documentation on this? What does this mean?
by sidcool 3y ago
Any documentation on this? What does this mean?
- tecleandor 3y agoSo, until now, a sidecar container was just the idea of running containers in you Kubernetes pod, along with your main service, that were 'helpers' for something: connection to databases or vpns, mesh networking, pulling secrets or config, debugging... But they didn't have special status, they were just regular containers in your pod. This sometimes posed some problems because they weren't available for the full life cycle of the pod, notably on the init process. So if your init containers needed secrets, connections, networking... that was being provided via a sidecar container, you were going to have a hard time. With this change, among other things, sidecars containers are going to be available for the whole life cycle of the pod. There are other implications, probably, but I still haven't finished reading the KEP [0]. Check it out, and there you'll find its motivation and several interesting examples. 0: https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/753-sidecar-containers Edit: corrected syntax
- deleted 3y ago[deleted]
- chdefrene 3y agoThe KEP (Kubernetes Enhancement Proposal) is linked to in the PR [1]. From the summary: > Sidecar containers are a new type of containers that start among the Init containers, run through the lifecycle of the Pod and don’t block pod termination. Kubelet makes a best effort to keep them alive and running while other containers are running. [1] https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/753-sidecar-containers https://github.com/kubernetes/enhancements/tree/master/keps/...