Azure AKS Cluster Network Initialization Configuration
Support Overview
| Support | Conditions | |
|---|---|---|
| service for LoadBalancer Type | Default Support | No additional deployment operations required. |
| Ingress | Support |
|
Prerequisites
If you have created an AKS cluster, please connect the Azure AKS cluster ; if you haven’t created an AKS cluster, please create an Azure AKS cluster .
Procedure
Deploy Ingress Controller
AKS uses the Container Network Mode and utilizes the Nginx Ingress Controller to manage the load balancer. Simultaneously, it provides external access addresses for virtual IP addresses (VIPs) in the container’s internal network through the LoadBalancer type of Service.
-
Log in to Microsoft Azure and access your created AKS cluster.
-
In the left navigation pane, click Kubernetes Resources > Services and Ingress.
-
Click Create, select Ingress (Preview) from the drop-down options, and it will prompt and automatically create the Ingress Controller.
-
Click Enable and wait for the completion.
Create Ingress, LoadBalancer Type Service
Ingress and LoadBalancer type Service can be created simultaneously or selected one by one based on the actual situation.
Create Ingress
-
Go to Container Platform, in the left navigation pane, click Networking > Ingresses.
-
Click Create Ingress, and select webapprouting.kubernetes.azure.com for Ingress Class.
-
Choose the Protocol, and by default, use the HTTP protocol. If you need to use the HTTPS protocol, please first create a certificate and select to use this certificate.
-
Click Create.
Create LoadBalancer Type Service
-
Go to Container Platform, in the left navigation pane, click Networking > Services.
-
Click Create Service, select LoadBalancer for Type.
-
Expand annotations and fill in as needed annotations for LoadBalancer type internal routing .
-
Click Create.
Related Operations
Create Certificate
When using the HTTPS protocol, you need to save HTTPS certificate credentials in the form of a secret (TLS type) in advance.
-
Go to Container Platform, in the left navigation pane, click Configuration > Secrets.
-
Click Create Secret.
-
Select TLS type and import or fill in the Certificates and Private Key as needed.
-
Click Create.