Coder Social home page Coder Social logo

htrixe / spring-boot-microservices Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 334 KB

Learn & Build Microservices with Java, Spring Boot, Spring Cloud, Docker, Kubernetes, Okta, Spring Security, CI/CD, GCP

Dockerfile 1.36% Java 98.64%
docker kubectl kubernetes minikube spring-boot

spring-boot-microservices's Introduction

Spring boot and Microservice with Kubernates

Spring demo with Microservice and Kubernetes

Running kubernates dashboard

Understanding building individual Microservice

Each microservice contains pom.xml. Before building make sure the docker hub credentials are setting settings.xml file.

To run only build : mvn clean install

To build and push to docker : mvn clean install jlib:build

Applying kubernates configuration to make pod running.

Go to k8s directory which contains

  • Apply config maps first : kubectl apply -f generic-config-map.yaml
  • Setting up mysql pod : kubectl apply -f mysql.yaml This yaml contains mysql password as well , you can use secrets/config for passwords too.
  • Set up zipkin : kubectl apply -f zipkin.yaml Access zipkin dashboard with http://localhost:9411 which was exposed using loadbalancer
  • Set up service registry pod : kubectl apply -f service-registry-deployment.yaml
  • Set up config server pod : kubectl apply -f config-service-deployment.yaml
  • Set up cloud gateway pod : kubectl apply -f cloud-gateway-deployment.yaml
  • Set up other microservices pod : kubectl apply -f payment-service-deployment.yaml/order-service-deployment.yaml/product-service-deployment.yaml

Related to OKTA Configuration

First create new application in okta . Application type should be open id application. Authroization server has configuration related to access token and refresh token validity.

Go to security -> API -> default audience to modify access policies and timing.

To get refresh token , we need to ensure we have grant type refresh token for application and also scope is offline_access provided when retriving tokens. Refer application yaml of cloud gateway.

spring-boot-microservices's People

Watchers

Hugo trix avatar

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.