Oracle Cloud Platform Data Integration 2021 Specialist — Question 3
How do you perform a rolling update in Kubernetes?
Answer options
- A. kubectl rolling-update
- B. kubectl update -c <container>
- C. kubectl rolling-update <deployment-name> --image=image:v2
- D. kubectl upgrade <deployment-name> --image=image:v2
Correct answer: C
Explanation
The correct answer is C because 'kubectl rolling-update <deployment-name> --image=image:v2' is the proper command to perform a rolling update by specifying the deployment and the new image version. Option A is incorrect as 'kubectl rolling-update' is not a valid command. Option B does not perform a rolling update but instead updates a specific container, and Option D uses 'kubectl upgrade', which is not a valid command for rolling updates.