Kubernetes - asymetric PODs managed by JCC

Please read Kubernetes documentation (here) before continuing reading as this chapter is heavily using Kubernetes.

Short description

This configuration is using asymetric PODs. JCC (JLupin Control Center) is monitoring cluster PODs all the time and when new one is addedd or old one is deleted then all PODs are updated with new list of peers. This way your evronment will be set up all the time.

Figure 1. Overview diagram.

Install Kubernetes cluster

Please install kubernetes cluster for hosting you application (link).

Prepare docker images

For this scenario you don't need to create docker images as you can use ones distributed by JLupin. They are containing empty main server ready for microservices deploying.

Prepare Deployment

When creating PODs it's bets to set them to fill whole left resources on each node. Prepare deployment with JLupin image and set desired number of instances. Read more here.

Prepare Service

Prepare service which will group your PODs and make them available on every node at specific port (with type of NodePort) or use cloud supported load balancing (with type LoadBalancer). Read more here.

Deploy Deployment and Service

Deploy your created Deployment and Service to kubernetes cluster with kubectl tool.

Setup load balancers and DNS

Now you can setup your load balancers or DNS to allow users to access your application.

Setup JCC

Setup JCC kubernetes module to watch your created cluster. Then with JCC tool you can start deploying your microservices to platform.