Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Multi-container pods#

Sumit Rawal answered on June 17, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • access specific container in pods
  • Running Multiple Pods
  • Single vs. Multi-Container Pods
  • When multiple container are running inside a Pod, which argument we can use to specify a container?
  • The frequent use case(s) for multi-container Pods is:
  • Pods with a single container:

  • Multi-container pods#

    0

    Does that mean that multi-container Pods are useless? They’re not. There are scenarios when having multiple containers in a Pod is a good idea. However, they are very specific and, in most cases, are based on one container that acts as the main service and the rest serving as side-cars.

    A frequent use case is multi-container Pods used for:

    Continuous integration (CI)

    Continuous Delivery (CD)

    Continuous Deployment processes (CDP)

    We’ll explore them later. For now, we’ll focus on single-container Pods. 

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Jun 19 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0

    At first glance, a pod seems pretty similar to a container, but the main difference is that we can have multiple containers running inside a single pod. We can think of a pod as a way to group containers that cooperate to do something.

    In most cases though, especially for simple applications like the ones we are running here, we will have only one container per pod.

    When we run more than one container in a single pod, it’s usually to support the primary application. For example, we could have our primary nginx container running alongside another container that periodically pulls a github repository to update the website that nginx is serving.

    Multi-container pods

    In this case, the primary container is nginx, which is serving our website, and the container that is getting the code from github is there just to help this pod serve its main function. 

    Popularity 3/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Jun 17 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.