Lädt...


🔧 Blue/green deployment with helm hands-on


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

QuickCap

Kubernetes uses RollingUpdate as the default deployment strategy, which transition to new version gradually.

Blue/green deployment strategy is about there're always 2 replica versions of application, this makes it easier to rollback to the previous version, if something goes wrong with the new release, and of course it's ideal for stateless application only.

Foreword

This post is about give you an overview picture of how blue/green deployment. There's no good practices, and re-use code well. If it's your thing, coninue reading :))

Resource

Clone repo: https://github.com/truc3651/devops

Quick look at the structure

Image description

Folder app contains everything for helm to release our app.
app/templates: where application template resident (deployment, config, secret, service)
app/Chart.yaml: release information (app name, version)
app/values.yaml: default environment variables that helm will use when install/upgrade app

deployment.sh: contains job visualize how blue/green deployment

Get your hands dirty

Install helm, kind
We use kind as local Kubernetes clusters.

brew install helm kind

Create a default cluster

kind create cluster --name helm

We have 1 control-plane
Image description

Change mod script

chmod +x ./deployment.sh

First time deploy your application

./deployment.sh init

We just create a deployment with 1 pod (default version blue)
Image description

At the beginning, service points to pod has label app=app
Image description

Release a new version
After weeks, your development team want to release new features.

./deployment.sh deploy-green

You can see blue pod has been terminated, and a new green pod has been created, also green deployment created as well.
Image description

Now our service points to pod which has label color=green
Image description

Release a new version 3rd time
After many weeks, your team want to introduce bunch cool features

./deployment.sh deploy-new-blue

This time, green pod has been terminated, and a new blue pod has been created.
Image description

And our service points to pod which has label color=blue
Image description

Rollback
The very new version has some critical bugs, so our team decides to rollback to the previous version

./deployment.sh rollback

You can see now green alive
Image description

...

🔧 Top-3 Helm Plugins: Helm Secrets, Helm Diff and Helm Git


📈 58.82 Punkte
🔧 Programmierung

🔧 Blue/green deployment with helm hands-on


📈 52.35 Punkte
🔧 Programmierung

🔧 Implementando Blue-Green deployment com Deployment slots do Azure Web App


📈 39.59 Punkte
🔧 Programmierung

🔧 Implementing blue-green deployment with Azure App Service deployment slots


📈 39.59 Punkte
🔧 Programmierung

🔧 Understanding the Differences Between Blue-Green Deployment and Canary Deployment


📈 39.59 Punkte
🔧 Programmierung

🔧 Implementing Blue-Green Deployments with Argo CD and Helm: A Practical Guide


📈 35.01 Punkte
🔧 Programmierung

🔧 CodePipeline pipeline for automation Blue/Green deployment with SM Automation runbook


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green Deployment: Update Your Software Risk-Free


📈 29.95 Punkte
🔧 Programmierung

🔧 Monitoring EC2 instances deployed with Blue/Green deployment


📈 29.95 Punkte
🔧 Programmierung

🔧 AWS RDS Blue/Green Deployment for Aurora using Terraform


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue/Green deployment on AWS EC2 instances with Systems Manager Automation runbook


📈 29.95 Punkte
🔧 Programmierung

🔧 Mitigating disruption during Amazon EKS cluster upgrade with blue/green deployment


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green Deployment in a Local Environment with Docker


📈 29.95 Punkte
🔧 Programmierung

🔧 Deployment Strategies: All at Once, Rolling Deploys, Blue-Green, and Canary Releases


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green Deployment in a Local Environment with Docker


📈 29.95 Punkte
🔧 Programmierung

🔧 Deployment strategies: Canary or Blue-Green?


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green and Canary Deployments: A Deep Dive into Modern Deployment Strategies


📈 29.95 Punkte
🔧 Programmierung

🔧 Using Blue/Green Deployment For (near) Zero-Downtime Primary Key Updates in RDS MySQL


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green Deployment with Azure


📈 29.95 Punkte
🔧 Programmierung

🔧 ECS Blue/Green deployment with CodeDeploy and Terraform


📈 29.95 Punkte
🔧 Programmierung

🔧 Scaling down the storage of a MySQL RDS database with zero downtime using AWS Blue/Green Deployment


📈 29.95 Punkte
🔧 Programmierung

🔧 Safe Blue-Green Docker-Compose Deployment


📈 29.95 Punkte
🔧 Programmierung

🔧 Advanced Deployment Strategies for Kubernetes: Canary, Blue-Green, and Shadow Deployments


📈 29.95 Punkte
🔧 Programmierung

🔧 How to Achieve Zero Downtime Deployments with Blue-Green Deployment in Kubernetes?


📈 29.95 Punkte
🔧 Programmierung

🔧 Docker for Blue/Green Deployment: Achieve Zero Downtime Updates


📈 29.95 Punkte
🔧 Programmierung

🔧 Blue-Green Deployment: Achieving Seamless and Reliable Software Releases


📈 29.95 Punkte
🔧 Programmierung

🔧 Understanding Blue-Green Deployment Strategy


📈 29.95 Punkte
🔧 Programmierung

🔧 What Is Blue-Green Software Delivery Deployment?


📈 29.95 Punkte
🔧 Programmierung

🔧 Zero-Downtime Blue-Green Deployment with a Simple 'git pull & bash run.sh' Command


📈 29.95 Punkte
🔧 Programmierung

🔧 Zero-Downtime Blue-Green Deployment with a Simple 'git pull & bash run.sh' Command


📈 29.95 Punkte
🔧 Programmierung

🎥 How to reduce deployment risk with blue-green deployments


📈 29.95 Punkte
🎥 Video | Youtube

matomo