Creating or updating Application Load Balancer resources based on Managed Service for Kubernetes configuration
To manage Application Load Balancer resources using an Ingress controller and Gateway API for Yandex Managed Service for Kubernetes, create a configuration consisting of YAML files with descriptions of Kubernetes resources: Ingress
, HttpBackendGroup
, Gateway
, HTTPRoute
, etc.
Getting started
-
Install kubectl
and configure it to work with the created cluster. - Install the Ingress controller or Gateway API.
- Create a resource. For configurations of available resources, see Tools for Managed Service for Kubernetes.
Applying a configuration
To apply a configuration:
-
Select the folder with the configuration files.
-
Run the following command:
kubectl apply -f .
Applying a configuration might take a few minutes.
-
If you're using the Ingress controller and added a new resource named
Ingress
to the configuration, make sure it's created and has a public IP address assigned:kubectl get ingress <Ingress_resource_name>
Result:
NAME CLASS HOSTS ADDRESS PORTS AGE <Ingress_name> <none> <domain_name> <IP_address> 80, 443 15h
The
ADDRESS
column must contain an IP address. Otherwise, the load balancer has not been created, or has been created with an error. Check the logs for a pod calledyc-alb-ingress-controller-*
(notyc-alb-ingress-controller-hc-*
).