Application Load Balancer (ALB) runs at the application layer and supports protocols such as HTTP, HTTPS, and Quick UDP Internet Connections (QUIC). ALB offers high elasticity and can process a large amount of network traffic at Layer 7. In addition, ALB supports canary releases based on headers and cookies. This topic describes how to use ALB Ingresses in Knative.
Prerequisites
- An ASK cluster or Container Service for Kubernetes (ACK) managed cluster is created. For more information, see Create an ASK cluster or Create an ACK managed cluster.
Step 1: Configure an ALB Ingress
You can configure an ALB Ingress by using one of the following methods:
Method 1: Select an ALB Ingress when you deploy Knative- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
- In the left-side navigation pane of the details page, choose .
- On the Components tab, click Deploy Knative.
- On the Deploy Knative page, select ALB and select at least two vSwitches. For more information about how to create vSwitches, see Create a vSwitch.
- After you complete the configurations, click Deploy.
If Knative is deployed, you can modify the configuration file of Knative to specify an ALB Ingress.
Step 2: Access a service by using the ALB Ingress
Configure a CNAME record
ALB allows you to add a CNAME record to map your domain names to the public domain name of the ALB instance. This allows you to access network resources in a convenient manner. For more information, see Configure a CNAME record.