In Kubernetes, the standard and most efficient way to revert a deployment to a previous stable state (i.e., roll back a rolling update) is by using the kubectl rollout undo command. This command uses the deployment's revision history to revert to a specified previous revision or the immediately preceding one if none is specified.
[Reference: Kubernetes/Google Kubernetes Engine (GKE) documentation on Deployments. "You can undo a rolling update and roll back to a previous revision of a deployment by using the command: kubectl rollout undo deployment/DEPLOYMENT_NAME." Options A, C, and D are incorrect. Deleting the deployment stops the service. Manually scaling is a complex and error-prone process. kubectl rollout restart simply triggers a new rolling update of the current configuration, which is not a rollback., ]
Submit