Ingress NGINX
- Review the system requirements of the add-on to make sure you have enough resources to install it.
- (Optional) Perform manual scaling of worker node groups or set up automatic scaling.
Several installation options are available for the add-on.
-
Install the add-on:
Management console-
Go to your VK Cloud management console.
-
Select the project where the required cluster is located.
-
Go to Kubernetes Clusters → Kubernetes Clusters.
-
Click the name of the required cluster.
-
Go to the Addons tab.
-
Click the Install button on the
ingress-nginxadd-on card, then click Install addon. -
(Optional) Edit:
-
application name;
-
the name of the namespace where the add-on will be installed;
-
-
Click the Install addon button.
The installation of the add-on in the cluster will begin. This process can take a long time.
-
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.
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.
-
Make sure that you can connect to the cluster using
kubectl. -
Run the command:
kubectl get svc ingress-nginx-controller -n ingress-nginxThe
EXTERNAL-IPcolumn will display the floating IP address assigned to the load balancer.