How do you handle Kubernetes rollbacks for failing deployments

0 votes
How do you handle Kubernetes rollbacks for failing deployments?
 In Kubernetes, managing rollbacks is crucial when a deployment fails health checks. Explain how you handle rollback strategies to ensure minimal disruption, and share any useful YAML configuration or commands.
Nov 12 in DevOps Tools by Anila
• 5,040 points
44 views

1 answer to this question.

0 votes

Kubernetes rollbacks also have a mechanism to keep previous versions of deployments. Even if a new deployment doesn't pass through health checks, you could very easily roll back to a previous version using the kubectl rollout undo command. This is how you would do it.

By defining readinessProbes and livenessProbes in your deployment YAML, you can prevent unready deployments from impacting the live service and ensure they can be rolled back quickly if necessary.

answered Nov 12 by Gagana
• 7,530 points

Related Questions In DevOps Tools

0 votes
0 answers

How do you handle failed deployments in a CI/CD pipeline without disrupting production?

This question basically seeks to know how ...READ MORE

Oct 28 in DevOps Tools by Anila
• 5,040 points
132 views
0 votes
1 answer

How do you handle version control for IaC when managing multiple cloud providers (AWS, Azure, GCP)?

Multi-Cloud IaC Structure: I use a modular ...READ MORE

answered Nov 3 in DevOps Tools by Gagana
• 7,530 points
92 views
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
4,011 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,072 views
0 votes
1 answer

How do you handle rollbacks in Jenkins pipelines in case of failed deployments? Could you share a Jenkinsfile with rollback logic for a safer deployment?

To manage rollbacks in Jenkins pipelines for deployments that failed, logic should be applied to ...READ MORE

answered Nov 25 in DevOps Tools by Gagana
• 7,530 points
84 views
0 votes
1 answer

How do you handle load balancing for dynamic microservices in cloud environments?

Dynamic microservices support flexible load balancing strategies ...READ MORE

answered Nov 4 in DevOps Tools by Gagana
• 7,530 points
135 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP