Kubernetes
Hard
Concepts
What is the purpose of a Kubernetes PriorityClass?
Select your answer:
Show answer and explanation
Answer: To determine the order in which pods are scheduled and evicted
Explanation
PriorityClass defines the priority of a pod relative to other pods. When pods are created, they can be assigned a priority, and the scheduler uses this priority to determine the order of scheduling. Higher-priority pods are scheduled before lower-priority pods and can preempt lower-priority pods when resources are constrained.
More hard Kubernetes questions
- What is the purpose of a Kubernetes MutatingWebhookConfiguration?
- Every container in a pod sets CPU and memory limits but no requests. What QoS class does the pod get?
- A container keeps trying to use more CPU than its CPU limit. What happens?
- A pod was scheduled using a requiredDuringSchedulingIgnoredDuringExecution node affinity rule. Later someone removes the matching label from the node. What happens to the pod?
- A node gets a NoExecute taint. A pod already running on it tolerates the taint with tolerationSeconds: 300. What happens?
- What does a DNS lookup of a headless Service (clusterIP: None) with a selector return?