All Products
Search
Document Center

Container Service for Kubernetes:Customize cluster API server certificate SANs

Last Updated:Mar 26, 2026

The API server certificate of a Container Service for Kubernetes (ACK) cluster contains the Subject Alternative Name (SAN) field. By default, this field includes the cluster's local domain name, the private IP address and public elastic IP address (EIP) of the Server Load Balancer (SLB) instance associated with the API server, and the local service IP. If you access the API server through a proxy or a custom domain not covered by the default SANs, TLS verification fails. To prevent this, add your custom IP addresses, domain names, or URIs to the SAN field.

Important

SAN customization support varies by cluster type:

Cluster typeAt creation timeFor existing clusters
ACK managed clusterSupportedSupported
ACK dedicated clusterSupportedNot supported
ACK Serverless clusterNot supportedSupported

Prerequisites

Before you begin, ensure that you have:

SAN overview

SAN is an extension to X.509. It allows you to associate various values with an SSL certificate by adding the values to the subjectAltName field. The values can be IP addresses, domain names, URIs, or email addresses.

Customize cluster API server certificate SANs

Customize SANs when creating a cluster

The following steps use an ACK managed cluster as an example. The procedure applies to other supported cluster types.

On the Create Cluster page, click Show Advanced Options. In the Custom Certificate SANs field, enter the SANs to add to the API server certificate. Separate multiple values with commas (,). Accepted value types: IP addresses, domain names, URIs, or email addresses.

Custom Certificate SANs field showing two domain names and one IP address

Update SANs for an existing cluster

Important

If you update or modify the custom SANs of the API server certificate for an existing cluster, the API server may restart during this process. We recommend that you perform this operation during off-peak hours.

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, find the cluster and click its name. In the left-side pane, click Cluster Information.

  3. On the cluster details page, click the Basic Information tab. In the Network section, click Edit to the right of Custom Certificate SANs.

  4. In the Update Custom SAN dialog box, configure the Custom Certificate SANs parameter and click OK.

What's next

Use API server audit logs to record and trace operations performed by different users. See Work with cluster auditing.