You can use an elastic IP address (EIP) to expose the API server for a cluster of Container Service for Kubernetes (ACK). After you perform this operation, you can access the API server of the ACK cluster over the Internet. You can bind an EIP to the Kubernetes API server during or after the cluster creation. This topic describes how to bind an EIP to an API server in the preceding ways.

Bind an EIP to the Kubernetes API server when you create an ACK cluster

When you create an ACK cluster, select Expose API Server with EIP. For information about how to create an ACK cluster, see Create a cluster of ACK Managed Edition.

EIP

Bind an EIP to the Kubernetes API server after an ACK cluster is created

If you do not select Expose API Server with EIP when you create an ACK cluster, you can perform the following steps to bind an EIP to the Kubernetes API server of the cluster:
Notice Only ACK Standard clusters allow you to bind an EIP to the Kubernetes API server after the cluster is created.
  1. Log on to the ACK console.
  2. In the left-side navigation pane, click Clusters.
  3. On the Clusters page, click the name of a cluster or click Details in the Actions column. The details page of the cluster appears.
  4. On the details page, click the Basic Information tab. In the Cluster Information section, click Bind EIP.
    Bind an EIP

What to do next

After an EIP is bound to the Kubernetes API server, you can change or unbind the EIP.

Change an EIP
Notice You can change or unbind the EIP for only ACK Standard clusters