Help Center/ Cloud Container Engine/ User Guide/ Network/ Ingresses/ LoadBalancer Ingresses/ Configuring Multiple Ingresses to Use the Same External ELB Port
Updated on 2025-01-07 GMT+08:00

Configuring Multiple Ingresses to Use the Same External ELB Port

In a cluster, multiple ingresses can share a listener, allowing them to use the same port on a single load balancer. If two ingresses have different listener configurations, the listener configuration of the earlier ingress (known as the first route) will be used. For details about how to check the first route, see How Can I Determine Which Ingress the Listener Settings Have Been Applied To?

The following table lists listener parameters.

Listener

Annotation

Documentation

Configuring ELB Certificates

kubernetes.io/elb.tls-certificate-ids

kubernetes.io/elb.tls-ciphers-policy

Configuring an HTTPS Certificate for a LoadBalancer Ingress

Using HTTP/2

kubernetes.io/elb.http2-enable

Configuring HTTP/2 for a LoadBalancer Ingress

Configuring Timeout for an Ingress

kubernetes.io/elb.keepalive_timeout

kubernetes.io/elb.client_timeout

kubernetes.io/elb.member_timeout

Configuring Timeout for a LoadBalancer Ingress

Configuring a Blocklist/Trustlist

kubernetes.io/elb.acl-id

kubernetes.io/elb.acl-status

kubernetes.io/elb.acl-type

Configuring a Blocklist/Trustlist Access Policy for a LoadBalancer Ingress

Configuring an HTTP/HTTPS Header

kubernetes.io/elb.x-forwarded-port

kubernetes.io/elb.x-forwarded-for-port

kubernetes.io/elb.x-forwarded-host

Configuring an HTTP/HTTPS Header for a LoadBalancer Ingress

Enabling GZIP

kubernetes.io/elb.gzip-enabled

Configuring GZIP Data Compression for a LoadBalancer Ingress

If different listeners are configured for different ingresses, synchronize the listener configurations of these ingresses. To do so, perform the following operations:

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Services & Ingresses. Then, click the Ingresses tab, and choose More > Update in the Operation column.
  3. Synchronize Configuration is available if the listener configuration of the ingress differs from that of the ELB. Click Synchronize Configuration. Then, the listener configuration will be automatically synchronized.