API
The Gcore Customer Portal is being updated. Screenshots may not show the current version.
Edge Cloud
Edge Cloud
OverviewBillingTerraform
API
Chosen image
Home/Edge Cloud/Managed Kubernetes/Networking/Install nginx Controller

Install nginx Ingress Controller

When you install the nginx Ingress Controller, our system automatically creates a Load Balancer. This Load Balancer acts as an entry point for incoming traffic. When traffic arrives, the Load Balancer forwards it to the Ingress Controller. The Ingress Controller is responsible for routing the traffic to the appropriate services within your Managed Kubernetes cluster based on the rules defined in the Ingress manifests.

1. Run the kubectl command to create a namespace:

kubectl create namespace ingress-nginx

2. Run the command to add the helm repository for the nginx Controller:

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx

3. Run the command to update the helm repository data:

helm repo update

4. Run the command to install the Controller:

helm install ingress-nginx ingress-nginx/ingress-nginx  \
--namespace ingress \
--set controller.ingressClassResource.name=nginx

You have installed the nginx Ingress Controller. It will now automatically create a Load Balancer on your behalf.

5. Use this command to get the IP address:

watch kubectl -n ingress get svc

Wait until the <pending> state of the EXTERNAL-IP column changes to the IP address.

The Load Balancer will be shown in the Gcore Customer Portal on the Load Balancers page. The traffic will reach the nginx Ingress Controller via this balancer.

Was this article helpful?

Not a Gcore user yet?

Discover our offerings, including virtual instances starting from 3.7 euro/mo, bare metal servers, AI Infrastructure, load balancers, Managed Kubernetes, Function as a Service, and Centralized Logging solutions.

Go to the product page