Kubernetes - kubectl Essential Commands
You want to manage a deployment over time, updating its image and replicas safely without deleting it. Which command should you use and why?
kubectl apply can create or update resources safely, preserving existing settings and avoiding errors.kubectl create fails if resource exists; deleting is disruptive; replace overwrites but is less safe than apply.kubectl apply -f deployment.yaml because it creates or updates resources safely. -> Option Bapply [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions