Creating or updating Application Load Balancer resources using Managed Service for Kubernetes configuration
To manage Application Load Balancer resources using an Ingress controller and Yandex Managed Service for Kubernetes Gateway API, create YAML configuration files describing Kubernetes resources, e.g., Ingress
, HttpBackendGroup
, Gateway
, HTTPRoute
, etc.
Getting started
-
Install kubect
and configure it to work with the new cluster. - Install the Ingress controller or Gateway API.
- Create a resource. For available resource configurations, see Tools for Managed Service for Kubernetes.
Applying a configuration
To apply a configuration:
-
Navigate to the folder with configuration files.
-
Run the following command:
kubectl apply -f .
Applying a configuration may take a few minutes.
-
After defining a new
Ingress
resource for your ingress controller to implement, make sure it was successfully 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
The IP address should appear in the
ADDRESS
column. Otherwise, the load balancer was not created or was created with an error. Check the logs for theyc-alb-ingress-controller-*
pod. (Do not confuse it with theyc-alb-ingress-controller-hc-*
pod.)