This topic describes how to connect a registered Kubernetes cluster to Managed Service for Prometheus over the Internet. You can perform the steps in this topic if your Kubernetes cluster is not connected to the Alibaba Cloud internal network over an Express Connect circuit.
Prerequisites
A self-managed Kubernetes cluster is connected to a cluster in an Alibaba Cloud data center. For more information, see Create a cluster registration proxy and register a Kubernetes cluster that is deployed in a data center.Scenario
Your registered Kubernetes cluster is not connected to the Alibaba Cloud internal network over an Express Connect circuit. You can deliver metrics to Managed Service for Prometheus over the Internet.
Step 1: Install the ack-arms-prometheus agent on the registered Kubernetes cluster
Install the ack-arms-prometheus agent on the registered Kubernetes cluster. For more information, see Enable Prometheus Service for a registered cluster.
Step 2: Configure the Kubernetes cluster
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- On the Clusters page, click the name of the cluster that you want to configure, or click Details in the Actions column of the cluster.
- In the left-side navigation pane, choose .
- Find the Helm whose namespace and release name are
arms-prom
and click Update in the Actions column. - In the Edit YAML dialog box, add mode:public to the
args
field or change the value of the mode parameter to public. - After you edit the YAML file, click OK.
Verify the result
- Log on to the ARMS console.
- In the left-side navigation pane, choose .
- Click the name of the Prometheus instance to which you want to connect.
- In the top navigation bar of the Prometheus Monitoring page, select the region where the Kubernetes cluster resides. Check whether the data in the connected self-managed Kubernetes cluster is monitored.