In Kubernetes, what resources does each node provide for pods?
CPU and memory.
What does each pod require in order to run on a node?
A specified amount of CPU and memory resources.
Which Kubernetes component decides which node a pod is placed on?
The Kubernetes Scheduler.
What does the Kubernetes scheduler consider when placing a pod on a node?
The pod’s resource requests and the available resources on each node.
What happens if no node has sufficient resources to satisfy a pod’s request?
The pod remains in the Pending state and is not scheduled.
In a Pending pod, what might you see in kubectl describe pod if there aren’t enough CPU resources?
An event indicating insufficient CPU (or similar resource-related message).
In Kubernetes, what is a resource request for a container?
The minimum amount of CPU or memory that a container asks for and is guaranteed.
Where do you define resource requests in a pod manifest?
Under spec.containers[].resources.requests for each container.
How does the scheduler use resource requests?
It uses them to find a node with enough free capacity to run the pod.
What is the effect of setting a CPU request for a container?
The container is guaranteed at least that amount of CPU when there is contention.
What is the effect of setting a memory request for a container?
The container is guaranteed at least that amount of memory when there is contention.
In Kubernetes, what does 1 CPU represent?
Roughly 1 vCPU/core/hyperthread (e.g., 1 vCPU in AWS or 1 core in GCP/Azure).
How can you represent 0.1 CPU using milliCPU units?
As 100m (100 millicpu).
What is the smallest CPU value you can request in Kubernetes?
1m (1 millicpu).
Can you request non-integer CPU amounts like 0.3 CPU?
Yes, for example 0.3 CPU ≈ 300m.
What is the difference between G and Gi when specifying memory?
G is gigabyte (GB, base 1000); Gi is gibibyte (GiB, base 1024).
What does 256Mi represent?
256 mebibytes (binary unit, base 1024).
Which suffix family is base-10 for memory units in Kubernetes?
K, M, G (e.g., MB, GB).
Which suffix family is base-2 for memory units in Kubernetes?
Ki, Mi, Gi (e.g., MiB, GiB).
In Kubernetes, what is a resource limit for a container?
The maximum amount of CPU or memory that a container is allowed to use.
Where do you set resource limits in a pod manifest?
Under spec.containers[].resources.limits.
Are resource requests and limits applied per pod or per container?
Per container; each container has its own requests and limits.
What happens if a container tries to use more CPU than its limit?
The CPU usage is throttled so it cannot exceed its CPU limit.
Does exceeding CPU limits by itself cause a container to be killed?
No, CPU overuse is throttled rather than killing the container.