Kubernetes
Hard
Security
What is the purpose of a Kubernetes MutatingWebhookConfiguration?
Select your answer:
Show answer and explanation
Answer: To modify Kubernetes resources before they are stored
Explanation
MutatingWebhookConfiguration is an admission controller that intercepts API requests and can modify them before they are persisted. This allows for automatic modifications like adding sidecar containers, setting default values, or injecting configuration based on custom logic implemented in an external webhook.
More hard Kubernetes questions
- 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?
- What does externalTrafficPolicy: Local do on a NodePort or LoadBalancer Service?