All Products
Search
Document Center

Container Service for Kubernetes:Use WAF-enabled ALB instances to protect applications

Last Updated:Nov 25, 2024

You can use Application Load Balancer (ALB) instances that have Web Application Firewall (WAF) enabled to prevent common network attacks, such as DDoS attacks, SQL injection, cross-site scripting, malicious HTTP requests, and SSH brute force attacks. WAF-enabled ALB instances support various HTTP protocols and encoding algorithms to help you build a in-depth and precise security system. If your web applications are vulnerable to intrusions or require higher security, you can use WAF-enabled ALB instances.

For more information about WAF-enabled ALB instances, see Benefits of WAF-enabled ALB instances. For more information about WAF, see What is WAF?

Important

For more information about the billing rules of WAF-enabled ALB instances, see ALB billing rules.

Prerequisites

Configure a WAF-enabled ALB instance

When you create an ALB instance or modify the configuration of an existing ALB instance, you can add the edition parameter to the AlbConfig and set the value to StandardWithWaf to enable WAF for the ALB instance. You cannot modify the edition parameter of a reused ALB instance.

apiVersion: alibabacloud.com/v1
kind: AlbConfig
metadata:
  name: alb
spec:
  config:
    addressType: Internet
    edition: StandardWithWaf # Enable WAF protection. 
    zoneMappings:
      #...

If the ALB instance no longer needs WAF protection, set the value of the edition parameter to Standard.

References