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

Pods are the atomic unit of scheduling#

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

Contents


More Related Answers

  • Components and Stages involved in a Pod's Scheduling

  • Pods are the atomic unit of scheduling#

    0

    It is important to understand that a pod is the atomic unit of scheduling in Kubernetes. So if we want to run, say, 10 replicas of our application, we would create 10 pods instead of creating one pod with 10 containers. We will see more examples of that in practice when we start talking about deployments.

    Pods' scheduling

    If you remember from a previous example, we had a manifest file like this

    apiVersion: v1

    kind: Pod

    metadata:

    name: nginx

    spec:

    containers:

    - name: nginx-container

    image: nginx

    Code for our example yaml file

    You will notice that we have a kind key saying that this manifest is defining a Pod. Then we have the metadata where we define a unique name for this pod (nginx), and a spec section where we define what we want to run in this pod. In our case, we are running a container called nginx-container, and saying that the docker image used for this container is called nginx.

    Most manifest files will follow a similar format. There are several other keys that can be defined, but this is the minimum we need to have a running pod. 

    Popularity 1/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.