An Elastic IP Address (EIP) provides public network access to the API server of a Kubernetes cluster. Attach an EIP during or after cluster creation. Replace or detach the EIP when you no longer need public network access.
Attach an EIP during cluster creation
When you create an ACS cluster, select Expose API Server with EIP to enable public network access to the cluster API server.
The Expose API Server with EIP option is in the API Server Access Configuration section of the cluster creation page.
Attach an EIP after cluster creation
If you did not enable public network access to the API server when you created the cluster, attach an EIP to the cluster. Attaching an EIP restarts the API server briefly. Perform the following steps:
-
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 Associate EIP next to API server Public Endpoint.
Select an existing EIP or create an EIP in the cluster's region, and click OK.
The associated EIP appears in the API server Public Endpoint field.
Do not perform any operations on the cluster while the API server restarts.
Replace or detach an attached EIP
After you attach an EIP, 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 Change EIP or Unbind next to API server Public Endpoint.
Detaching the EIP removes public network access to the cluster API server. Replacing or detaching the EIP restarts the API server briefly. Do not perform any operations on the cluster while the API server restarts.