To expose the API server of a Kubernetes cluster, you can bind an Elastic IP address to the API server. After you perform this operation, you can access the API server from the Internet. You can bind an Elastic IP address to a Kubernetes API server during or after the cluster creation. This topic describes the two binding methods.

Bind an Elastic IP address to the API server during cluster creation

To access the API server of a Kubernetes cluster from the Internet, you can select Expose API Server with EIP when you create the cluster. For information about how to create a cluster, see Create a managed ACK cluster.

EIP

Bind an Elastic IP address to the API server of a created Kubernetes cluster

If you do not select Expose API Server with EIP when you create a cluster, you can perform the following steps to bind an Elastic IP address to the API server of this cluster:
Notice Only managed Kubernetes clusters allow you to bind an Elastic IP address to the API server after the cluster is created.
  1. Log on to the ACK console.
  2. In the left-side navigation pane, choose Clusters > Clusters.
  3. On the Clusters page, click Create Kubernetes Cluster in the upper-right corner.
    console
  4. On the Clusters page, click the name of the target cluster or click Manage in the Actions column.
  5. In the Cluster Information section on the Basic Information tab, click Bind EIP.
    Bind an Elastic IP address

What to do next

After an Elastic IP address is bound to a Kubernetes API server, you can change or unbind the Elastic IP address.

Change an Elastic IP address
Notice Only managed Kubernetes clusters allow you to change or unbind Elastic IP addresses.