VK Cloud logo

Ingress NGINX

Before you begin

  1. Review the system requirements of the add-on to make sure you have enough resources to install it.
  2. (Optional) Perform manual scaling of worker node groups or set up automatic scaling.

Installing add-on

Several installation options are available for the add-on.

  1. Install the add-on:

    1. Go to your VK Cloud management console.

    2. Select the project where the required cluster is located.

    3. Go to Kubernetes Clusters → Kubernetes Clusters.

    4. Click the name of the required cluster.

    5. Go to the Addons tab.

    6. Click the Install button on the ingress-nginx add-on card, then click Install addon.

    7. (Optional) Edit:

      • application name;

      • the name of the namespace where the add-on will be installed;

      • add-on settings code.

    8. Click the Install addon button.

      The installation of the add-on in the cluster will begin. This process can take a long time.

  2. Get the IP address of the load balancer.

Editing add-on settings code during installation

Changing the load balancer type for the Ingress controller

When installing an add-on with default parameters, a load balancer with a floating IP address is created, and the Ingress controller will be accessible from the Internet.

To prevent the Ingress controller from being accessible from the Internet, specify an annotation according to which an internal load balancer will be created:

---service:  annotations:    {      "loadbalancer.openstack.org/proxy-protocol": "true",      "service.beta.kubernetes.io/openstack-internal-load-balancer": "true",    }

Once done with editing the add-on code, continue with the installation process.

Prohibition of deleting an Ingress controller node by the Autoscaler module

The Autoscaler module automatically scales the cluster: it adds nodes when the load increases, and removes when it decreases. To prevent a module from deleting the node on which the add-on is running, you need to specify a ban on deletion in the pod annotation:

controller:  podAnnotations:    cluster-autoscaler.kubernetes.io/safe-to-evict: "false"

Once done with editing the add-on code, continue with the installation process.

Getting the IP address of the load balancer

  1. Make sure that you can connect to the cluster using kubectl.

  2. Run the command:

    kubectl get svc ingress-nginx-controller -n ingress-nginx

    The EXTERNAL-IP column will display the floating IP address assigned to the load balancer.

Was this article helpful?