Oracle Cloud Platform Data Integration 2020 Specialist — Question 38
How do you perform a rolling update in Kubernetes? (Choose the best answer.)
Answer options
- A. kubectl rolling-update
- B. kubectl upgrade <deployment-name> """"image=image:v2
- C. kubectl update ""c <container>
- D. kubectl rolling-update <deployment-name> """"image=image:v2
Correct answer: D
Explanation
The correct answer is D because it specifies the command to perform a rolling update with the desired image version for a specific deployment. Option A is incorrect as it lacks the necessary parameters. Option B is incorrect because 'kubectl upgrade' is not a valid command for rolling updates. Option C does not relate to rolling updates in Kubernetes.