Skip to content

therealdavidbour/bluegreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blue Green Deployments using Kubernetes Namespaces

bg bgfr

Read More

at https://medium.com/itnext/kubernetes-namespaces-the-secret-weapon-for-zero-risk-blue-green-deployments-5e59060a6267

Quickstart

  1. Create Namespaces
kubectl create ns nginx-blue
kubectl create ns nginx-green
kubectl create ns bg-switch
  1. Setup your /etc/hosts to point to the custom URL within ingress.yaml
  2. Install the manifests
```bash
kubectl apply -f ingress.yaml -n bg-switch
kubectl apply -f service-switch -n bg-switch
kubectl apply -f blue-app.yaml -n nginx-blue
kubectl apply -f green-app.yaml -n nginx-green
  1. Switch between blue and green using patch.
kubectl patch service bg-switch-service -n bg-switch --type=merge -p '{"spec":{"externalName":"nginx-green-svc.nginx-green.svc.cluster.local"}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors