Expose the API Server of a Kubernetes Cluster by attaching an Elastic IP Address (EIP), which enables public access. You can attach an EIP during or after cluster creation. This topic describes how to control public access for the cluster API Server by attaching and detaching EIPs.
Attach an EIP during cluster creation
When you create an ACS cluster, select Expose API Server with EIP to enable public access for the cluster API Server.

Attach an EIP after cluster creation
If you did not enable public access for the API Server during cluster creation, follow these steps to attach an EIP.
Log on to the ACS console. In the left navigation pane, click Clusters.
On the Clusters page, click the name of the target cluster. In the left navigation pane, choose Cluster Information.
On the Cluster Information page, click the Basic Information tab. In the Network section, click Attach EIP to the right of API Server Public Endpoint. Follow the on-screen instructions to select an existing EIP or create an EIP. Ensure that the EIP is in the same region as the cluster. Then, click OK.
After the EIP is attached, the public IP address appears in the API Server Public Endpoint section.
Attaching an EIP causes the API Server to restart briefly. Avoid operations on the cluster during this restart.
Replace or detach an EIP
After an EIP is attached, you can also replace or detach it on the Basic Information tab of the Cluster Information page.
Log on to the ACS console. In the left navigation pane, click Clusters.
On the Clusters page, click the name of the target cluster. In the left navigation pane, choose Cluster Information.
On the Cluster Information page, click the Basic Information tab. In the Network section, click Replace or Detach to the right of API Server Public Endpoint and follow the on-screen instructions.
After you detach the EIP, the cluster's API Server loses public access.
Replacing or detaching an EIP briefly restarts the API Server. Avoid performing operations on the cluster during this restart.