How to assign an Load Balancer-IP to NGINX ingress?

softshipper

I have created K8S cluster with Rancher on DO(DigitalOcean) platform and behind the scene, it creates VPS(Droplet) to build the K8S cluster.

The way, how I have created on Rancher:

enter image description here

and choosed the DO plugin

On DO platform, you have the opportunity the create Load Balancers to add to K8S cluster, as described on https://www.digitalocean.com/docs/kubernetes/how-to/add-load-balancers/.

I have installed NGINX ingress on K8S via helm:

helm install ingress-nginx ingress-nginx/ingress-nginx --namespace nginx --set controller.publishService.enabled=true

and the status of the NGINX controller services shows:

k get service -n nginx                                                                                               
NAME                                 TYPE           CLUSTER-IP     EXTERNAL-IP   PORT(S)                      AGE
ingress-nginx-controller             LoadBalancer   10.43.117.7    <pending>     80:31609/TCP,443:32247/TCP   103s
ingress-nginx-controller-admission   ClusterIP      10.43.55.223   <none>        443/TCP                      103s  

Then I've created a load balancer with the following rules:

enter image description here

Afterwards I received an IP address. Therefore my question is, how to assign the IP to the ingress-nginx-controller?

Alan J Castonguay

A Service of type LoadBalancer is a declaration of your desire, and it should cause a DigitalOcean LB to be provisioned. Implementing this desire is the responsibility of a cloud controller: code which subscribes to the list of Services of type LoadBalancer and uses the cloud provider's API to ensure a cloud provider LB is provisioned.

https://github.com/digitalocean/digitalocean-cloud-controller-manager

You shouldn't handcraft the DigitialOcean LB yourself.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Ingress vs Load Balancer

How to get the URL or IP of a load balancer from DNS of a website?

How to configure nginx to act as a load balancer for proxies?

Create kubernetes nginx ingress without GCP load-balancer

How do I find out the external IP of a Load Balancer service?

What's the difference between exposing nginx as load balancer vs Ingress controller?

Kubernetes Ingress Controller without Load Balancer

Assign a static IP address to an AWS Application Load Balancer

How to assign Public IP to Kubernetes's Ingress

Clarify Ingress load balancer

gke nginx ingress create additional load balancer

Nginx ingress controller vs HAProxy load balancer

How to fix "failed to ensure load balancer" error for nginx ingress

How does an external load balancer learn of istio ingress gateways

How to set exceptions for NGINX load balancer

GKE - how to attach static ip to internal load balancer

How do I add an nginx load balancer to a kubernetes cluster on Jelastic?

GCP - How to serve multiple applications on a load balancer using Ingress?

How to assign elastic ip to existing AWS application load balancer?

Google Cloud Load Balancer + GKE ingress

Kubernetes Ingress - Load balancer traffic split

How to setup load balancer with ingress nginx controller

Nginx ingress controller without load balancer in Kubernetes

No load balancer created and static ip assigned to traefik ingress on GKE

Nginx load balancer configuration

How can I configure NGINX ingress controller to work with Cloudflare and Digital Ocean Load Balancer?

GCP VM in same region not able to Ping Internal HTTPS Load Balancer IP created with GKE internal LB ingress

Why is there a load balancer in ingress controller?

How to run nginx load balancer with upstream random directive in docker