L7 Load Balancing (CLUSTER IP)on Kubernetes with Rancher
- Login to Rancher and Choose project from top menu in selected Cluster wherever you want to deploy the service (In my case in default project want to deploy the service)

2. Fill up the field details are as below
Name of workload: any
Scalable deployment of: no of pod want to deploy
Dockers Image: Docker Image path (From private or public registry server)
Namespace: Default (Choose Accordingly)
Choose CLUSTER IP as a service from Drop down (L7 Load Balancer)
Publish the container port: Where the service will run under container
On listening port: Host port which will be available
As given below image:

3. So GOTO Load Balancer from top menu and create Ingress service named medium
As shown in below image

4. Fill up the field details are as below
Namespace : Default (Choose Accordingly)
RULES: if select first option then Rancher will generate any random host name otherwise choose specify hostname to use and give any host name
Path: where is the landing page resides (Default path is /)
Choose target : Choose created service discovery in given drop down
Port: 80
As shown in below image

5. Now submit the Ingress and do host entry in local machine to access the container with given HOST NAME (medium.test.in).
As shown in below image

Comments
Post a Comment