Coder Social home page Coder Social logo

piomin / sample-spring-bluegreen-with-db Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 11.0 47 KB

Demo applications and Kubernetes manifests for illustrating blue-green deployment strategy with database schema changes using tools like Liquibase and Istio

Home Page: https://piotrminkowski.com/

Java 96.16% Dockerfile 3.84%
istio liquibase kubernetes bluegreen-deployment spring-boot readiness liveness database-migrations jpa

sample-spring-bluegreen-with-db's Introduction

Blue-green deployment with a database on Kubernetes Twitter

CircleCI

SonarCloud Bugs Coverage Lines of Code

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

sample-spring-bluegreen-with-db's People

Contributors

piomin avatar r2-lf avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sample-spring-bluegreen-with-db's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.


Warning

Renovate failed to look up the following dependencies: Failed to look up maven package pl.piomin.samples:sample-spring-bluegreen-with-db.

Files affected: caller-service/pom.xml, person-service/pom.xml


This repository currently has no open or pending branches.

Detected dependencies

circleci
.circleci/config.yml
  • cimg/openjdk 21.0.2
  • maven 1.4.1
dockerfile
k8s/Dockerfile
maven
caller-service/pom.xml
  • pl.piomin.samples:sample-spring-bluegreen-with-db 1.0-SNAPSHOT
  • org.projectlombok:lombok 1.18.32
  • io.specto:hoverfly-java-junit5 0.18.1
  • com.google.cloud.tools:jib-maven-plugin 3.4.2
person-service/pom.xml
  • pl.piomin.samples:sample-spring-bluegreen-with-db 1.0-SNAPSHOT
  • org.projectlombok:lombok 1.18.32
  • org.instancio:instancio-junit 4.6.0
  • org.testcontainers:testcontainers-bom 1.19.8
  • com.google.cloud.tools:jib-maven-plugin 3.4.2
pom.xml
  • org.springframework.boot:spring-boot-starter-parent 3.2.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.