Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Rolling back a Kubernetes deployment

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Shawn Sesna
Word Count
1,161
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

Deployments to Kubernetes may not always go as planned, necessitating the use of rollback strategies to revert to a previous stable version. This article explores both general and Kubernetes-specific rollback techniques using Octopus Deploy, focusing on the deployment of a containerized Java-based PetClinic application. The proposed strategies include redeploying the previous version, conditionally executing steps during rollback, blocking release progression, and utilizing Kubernetes' built-in revision history for rollbacks. The process involves deploying MySQL and PetClinic containers, running Flyway jobs, and updating deployment annotations to tie releases to revisions. The article emphasizes the importance of calculating deployment mode to determine whether to execute certain steps and highlights the efficiency of rolling back using Kubernetes revision history, which can be completed in seconds aside from container startup time.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 14 1,218 176 69 -9%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.