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 are using the Ingress controller and added a new resource named
Ingress
to the configuration, make sure it was created and got a public IP address:kubectl get ingress <Ingress_resource_name>
Result:
NAME CLASS HOSTS ADDRESS PORTS AGE <Ingress_name> <none> <domain_name> <IP_address> 80,443 15h
An IP address should appear in the
ADDRESS
column. If it did not, the load balancer was not created or was created with an error. Check the logs for theyc-alb-ingress-controller-*
pod (notyc-alb-ingress-controller-hc-*
).