This topic describes how to connect a registered ACK cluster to Managed Service for Prometheus over the public network if you do not have a leased line connection to Alibaba Cloud.
Prerequisites
A self-managed Kubernetes cluster has been registered with ACK One. For more information, see Create an ACK One registered cluster.
Scenarios
You can send monitoring metrics from a registered ACK cluster to a Prometheus data source over the public network if the cluster is not connected to the Alibaba Cloud private network.
Step 1: Connect arms-prometheus to the registered cluster
Connect arms-prometheus to the registered cluster. For more information, see Connect Alibaba Cloud Prometheus to a registered cluster.
Step 2: Configure the Kubernetes cluster
Log on to the Container Service Management Console.
In the left navigation pane, click Cluster.
On the Clusters page, click the name of the destination cluster, or click Details in the Actions column.
In the navigation pane on the left, choose .
For the Helm release with both the namespace and release name set to
arms-prom, click Update in the Actions column.In the Edit YAML dialog box, set the mode parameter in the
argsfield to public.After you modify the YAML file, click OK.
Verify the results
-
Log on to the ARMS console.
-
In the left navigation pane, choose .
-
Click the name of the Managed Service for Prometheus instance.
In the top menu bar of the Prometheus Monitoring page, select the region where the Kubernetes cluster is located.
Verify that monitoring data is available for the connected self-managed Kubernetes cluster.