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

Difference between pods and containers#

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

Contents


More Related Answers

  • get containers in pod
  • What are the main differences between the Docker Swarm and Kubernetes?
  • access specific container in pods
  • Kubernetes Nodes vs Pods
  • What is the difference between pods and nodes
  • Pods with a single container:

  • Difference between pods and containers#

    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 6/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    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.