Creating or updating Application Load Balancer resources based on Managed Service for Kubernetes configuration
To manage Application Load Balancer resources using an Ingress controller for Managed Service for Kubernetes, create a configuration consisting of YAML files with descriptions of Kubernetes resources: Ingress
, HttpBackendGroup
, etc. For more information about the configuration, see the Managed Service for Kubernetes tool reference.
Getting started
-
Install kubectl
and configure it to work with the created cluster. - Install the Ingress controller.
- Create a configuration. For more information, see the description and reference of the Ingress controller.
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-*
).