{"id":16119671,"url":"https://github.com/piomin/sample-spring-bluegreen-with-db","last_synced_at":"2025-06-26T22:36:16.857Z","repository":{"id":49033190,"uuid":"340024748","full_name":"piomin/sample-spring-bluegreen-with-db","owner":"piomin","description":"Demo applications and Kubernetes manifests for illustrating blue-green deployment strategy with database schema changes using tools like Liquibase and Istio","archived":false,"fork":false,"pushed_at":"2025-06-19T23:00:00.000Z","size":85,"stargazers_count":19,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T00:18:43.584Z","etag":null,"topics":["bluegreen-deployment","database-migrations","istio","jpa","kubernetes","liquibase","liveness","readiness","spring-boot"],"latest_commit_sha":null,"homepage":"https://piotrminkowski.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piomin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-18T11:11:51.000Z","updated_at":"2025-06-19T23:00:03.000Z","dependencies_parsed_at":"2023-10-03T02:23:34.122Z","dependency_job_id":"6012f97c-2afb-4092-9f65-9a1d9efd369c","html_url":"https://github.com/piomin/sample-spring-bluegreen-with-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piomin/sample-spring-bluegreen-with-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-bluegreen-with-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-bluegreen-with-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-bluegreen-with-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-bluegreen-with-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piomin","download_url":"https://codeload.github.com/piomin/sample-spring-bluegreen-with-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-bluegreen-with-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262151864,"owners_count":23266930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluegreen-deployment","database-migrations","istio","jpa","kubernetes","liquibase","liveness","readiness","spring-boot"],"created_at":"2024-10-09T20:54:44.866Z","updated_at":"2025-06-26T22:36:16.830Z","avatar_url":"https://github.com/piomin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Blue-green deployment with a database on Kubernetes  [![Twitter](https://img.shields.io/twitter/follow/piotr_minkowski.svg?style=social\u0026logo=twitter\u0026label=Follow%20Me)](https://twitter.com/piotr_minkowski)\n\n[![CircleCI](https://circleci.com/gh/piomin/sample-spring-bluegreen-with-db.svg?style=svg)](https://circleci.com/gh/piomin/sample-spring-bluegreen-with-db)\n\n[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-bluegreen-with-db)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-bluegreen-with-db\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-bluegreen-with-db)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-bluegreen-with-db\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-bluegreen-with-db)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-bluegreen-with-db\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-bluegreen-with-db)\n\nDetailed description can be found here: [Blue-green deployment with a database on Kubernetes](https://piotrminkowski.com/2021/02/18/blue-green-deployment-with-a-database-on-kubernetes/)\n\n\n## Quick Start using Minikube\n\n\n\u003e For Windows, all minikube and kubectl commands should be run in an Administrator CMD shell.\n\n### Install and start minikube\n\n`minikube start`\n\nStart the minikube dashboard\n\n`minikube dashboard`\n\n\u003e Consider doing this in another shell as it \n\n#### Install Istio on the host machine and install in Minikube\n\nInstallation instructions for Istio are [here.]((https://istio.io/latest/docs/setup/install/istioctl/))\n\n`istioctl install`\n\n### Install Postgres in Minikube\n\n`kubectl create -f postgresql-deployment.yaml `\n\n### Create a Liquibase container with environment information\n\n\u003e See the Dockerfile for more details\n\n`docker build -t liquibase/bg-k8s-liquibase .`\n\n`docker push liquibase/bg-k8s-liquibase`\n\n\u003e You will want to change this to match your Docker Hub username.\n\n### Create Liquibase Config Maps and Jobs\n\n\u003e The config map is the Liquibase changelog.\n\n`kubectl create -f liquibase-cm-v1.yaml`\n\n\u003e The Job runs liquibase with the config map.\n\n`kubectl create -f liquibase-job-v1.yaml`\n\n\u003e Repeat for Version 2\n\n`kubectl create -f liquibase-cm-v2.yaml`\n\n`kubectl create -f liquibase-job-v2.yaml`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiomin%2Fsample-spring-bluegreen-with-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiomin%2Fsample-spring-bluegreen-with-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiomin%2Fsample-spring-bluegreen-with-db/lists"}