How to create a container inside pod explicitly?

7/3/2019

In a kubernetes cluster"s pod there are 2 container in running state and the pod is configured auto-scale. Now I want to create a another container inside the same pod with the same image that both running container have explicitly while don’t stopping the running container.

How can I acheive this?

Cluster information: Kubernetes version: 1.14, Cloud being used: (put bare-metal if not on a public cloud) : Google Cloud and Host OS: Debian

Update the deployment-yaml file, include the 3rd container image and then rolling-update.

-- Rishabh Jain
google-cloud-platform
google-kubernetes-engine
kubernetes
kubernetes-pod

1 Answer

7/3/2019

Scaling in kubernetes operates pods, not containers within a pod. You create a deployment and set the desired number of replicas. This will ensure corresponding number of similar pods for you.

-- Max Lobur
Source: StackOverflow