Declarative and imperative management · Question 2 of 12
Which command creates missing objects from a file and updates existing ones?
1 answer is correct. Easy Created with AI
Show answer
Answer
- D kubectl apply -f app.yaml
Explanation
create fails if the object already exists, replace fails if it is still missing. apply handles both cases.