Kubernetes
Hard
Security
What is the purpose of a Kubernetes ValidatingWebhookConfiguration?
Select your answer:
Show answer and explanation
Answer: To intercept and potentially reject API requests based on custom logic
Explanation
ValidatingWebhookConfiguration is an admission controller that intercepts API requests and can reject them based on custom logic implemented in an external webhook. This allows for custom validation rules beyond what Kubernetes provides natively, such as enforcing organization-specific policies.
More hard Kubernetes questions
- What is the purpose of a Kubernetes PriorityClass?
- 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?