Awesome Open Source
Awesome Open Source

Blue-green deployment with a database on Kubernetes Twitter

Detailed description can be found here: Blue-green deployment with a database on Kubernetes

Quick Start using Minikube

For Windows, all minikube and kubectl commands should be run in an Administrator CMD shell.

Install and start minikube

minikube start

Start the minikube dashboard

minikube dashboard

Consider doing this in another shell as it

Install Istio on the host machine and install in Minikube

Installation instructions for Istio are here.

istioctl install

Install Postgres in Minikube

kubectl create -f postgresql-deployment.yaml

Create a Liquibase container with environment information

See the Dockerfile for more details

docker build -t liquibase/bg-k8s-liquibase .

docker push liquibase/bg-k8s-liquibase

You will want to change this to match your Docker Hub username.

Create Liquibase Config Maps and Jobs

The config map is the Liquibase changelog.

kubectl create -f liquibase-cm-v1.yaml

The Job runs liquibase with the config map.

kubectl create -f liquibase-job-v1.yaml

Repeat for Version 2

kubectl create -f liquibase-cm-v2.yaml

kubectl create -f liquibase-job-v2.yaml

Alternatives To Sample Spring Bluegreen With Db
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (385,344
Kubernetes (24,520
Spring Boot (15,398
Jpa (3,468
Istio (1,050
Database Migrations (690
Liquibase (137
Liveness (22
Readiness (13
Bluegreen Deployment (9