- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
User guide
Networking
Ingress
ALB Ingress
Customize ALB Ingress forwarding rules
Configuring fixed responses
Customize ALB Ingress forwarding rules
Configuring fixed responses
Configuring fixed responses
ALB Ingresses allow you to configure fixed responses. When a request passes through the ALB instance, the ALB instance can directly return a fixed response without the need to forward the request to the back-end service.
- The alb-ingress-controller add-on has been installed and upgraded to v0.35.0 or later. For details, see Upgrading add-ons.
- This configuration is supported only when a Standard edition ALB instance is used.
Creating through the console
- In the left navigation bar, click Cluster.
- On the cluster list page, click the target cluster for which you need to configure an Ingress.
- In the left navigation bar of the cluster management page, click Services and Ingresses > Ingress. On the page that appears, click Create Ingress.
- Select Application Load Balancer (ALB) for Ingress type.
- Enable Custom forwarding rules and configure the details of the forwarding rules.
Creating through kubectl
An ALB Ingress supports fixed response configurations through annotations. The following content provides an example:
Warning
The {{service-name}} field in the annotation must match the name of the back-end service configured in spec.rules. For example, in this case, the correct annotation is ingress.vke.volcengine.com/loadbalancer-actions.service-demo.
The following table describes fields in the ingress.vke.volcengine.com/loadbalancer-actions.{{service-name}} annotation.
- Click Instance in the left navigation bar. In the instance list, find the target ALB instance and click Listener in the Actions column.
- On the listener details page, find the target listener. In the Actions column, click Edit forwarding rules to view the existing forwarding rules of the listener. You can view the newly added fixed response rule.
- For a forwarding rule, click
to view rule details. The rule details should be consistent with the configured ones.
Sending access requests for verification
tip
Before verification, make sure that you have deployed back-end applications and services in the cluster. In this example, an Nginx image is used and the service path is /. For deployment steps, see Using ALB Ingresses for service deployment. Access the service by using the domain name configured in the ALB Ingress. In this example, 14.***.***.*** is the public IP address of the ALB instance.
The expected result is as follows: When the requested domain is example.com and the original path is /, the system directly returns a fixed response without forwarding the request to the back-end server.
Last updated: 2026.07.07 11:15:44