/spring-kubernetes-microservices

Spring Cloud Kubernetes Micro Services using Cassandra, NGINX Ingress, Minio, NFS persistent storage, MetalLB load balancing and helm support

Primary LanguageJava

Spring Kubernetes Micro Services Showcase

Kubernetes is leading orchestration framework which enables automated deployments, scaling, and management of containerized applications. Spring Kubernetes Micro Services is a showcase application which uses the new Spring Cloud Kubernetes framework to manage service discovery and is deployed on kubernetes network. The application provides services to fetch the generated report documents using Spring Batch and stored on a Minio cloud storage. The application has below services.

  • Discovery Service: Eureka discovery service allows micro services to find and communicate with each other for local testing. Kubernetes uses Spring Cloud Kubernetes for service discovery.

  • Data Service: Data service provides reactive services using Spring WebFlux to store and fetch report document data.

  • Minio Service: Minio service provides private cloud storage services to store and fetch files.

  • Storage Service: Storage services provide service to fetch files using object id and bucket.

  • Document Service: Document service exposes services to get list of reports for the user and download them using document id.

  • Elastic Logging: ElasticSearch-Beats-Logstash-Kibana provides log storage and management.

  • Ingress Controller: Ingress controller is responsible for directing external traffic to corresponding Kubernetes service within the cluster.

    Spring Kubernetes Microservices Design

Follow the below documentation in order to setup this application using Kubernetes.

  • Kubernetes Architecture: Blog post discussing Kubernetes concepts, architecture and various commands in depth.
  • Kubernetes Installation: Setup Kubernetes Master and Worker nodes for Ubuntu Bionic. Please refer to various documentations online for respective operating systems.
  • Docker Registry: Docker registry setup is required to distribute docker images to various Kubernetes pods.
  • Kubernetes Commands: Kubernetes commands provides some frequently used commands to deploy and delete/clean up Kubernetes services and debug or troubleshoot kubernetes pods.
  • Helm: Helm is the package manager for Kubernetes which assists in installing and managing applications on Kubernetes clusters.