Kubernetes interview question
How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
Scenario Asked in DevOps Engineer · Site Reliability Engineer (SRE) · Cloud Engineer interviews
Summary
Run a tool like kubent (kube-no-trouble), pluto, or kubectl convert against your
manifests and live objects to find deprecated or removed API versions, then update the
apiVersion field in each manifest to the replacement API before upgrading the cluster.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Kubernetes questions
- Deployment, StatefulSet, DaemonSet, Job and CronJob: when do you use each?
- What is the difference between resource requests and limits, and what are the QoS classes?
- What are Kubernetes namespaces, when should you create them, and what isolation do they provide?
- Write a Kubernetes Deployment and Service for a web API with probes, resource requests and a rolling update strategy.
- Describe the Kubernetes architecture: what runs on the control plane and what runs on the nodes?
- How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
- What happens, step by step, when you run kubectl apply for a Deployment?
- How do you make pods shut down gracefully without dropping requests?