https://github.com/tomowatt/blue-green-k8s
Implementation of Blue/Green Deployment with Terraform on Kubernetes
https://github.com/tomowatt/blue-green-k8s
devops kubernetes patterns terraform
Last synced: 3 months ago
JSON representation
Implementation of Blue/Green Deployment with Terraform on Kubernetes
- Host: GitHub
- URL: https://github.com/tomowatt/blue-green-k8s
- Owner: tomowatt
- Created: 2021-08-16T15:32:49.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T14:52:07.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T12:28:09.479Z (over 1 year ago)
- Topics: devops, kubernetes, patterns, terraform
- Language: HCL
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blue/Green Deployments on Kubernetes
## About
An prototype implementation of using Terraform to provide Blue/Green Deployments on Kubernetes.
Using two Ingresses serving on different Domains, with one of them 'hidden' behind Basic Authentication.
Switching between the two Deployments would be done at the Ingress, from Blue Service to Green Service and vice versa. But this could be changed to different Paths or using HTTP Headers to route to the different 'versions'.
Separate ConfigMaps allows for updating the 'versions' individually.
Different Namespaces could be used, but adds extra complexity when switching the Ingress Backend, creating two 'environments' rather than 'versions'.
Abstracting with Variables allows for a more declarative approach and moves the configuration changes into a centralised file but not done for demonstration purposes.
## Application Code
A Go HTTP server that templates HTML.
[blue-green](https://github.com/tomowatt/blue-green)