Establish connection to the cluster private network

After you deploy a managed cluster that is based on Equinix Metal with private networking, establish connection to the cluster private network from your local machine to access the StackLight web UIs such as Prometheus, Alertmanager, and so on.

To establish connection to the cluster private network:

  1. Install sshuttle.

  2. Obtain the cluster CIDR from the cluster specification:

    kubectl --kubeconfig <managedClusterKubeconfig> \
    get cluster <managedClusterName> -n <managedClusterProjectName> \
    -o jsonpath='{.spec.providerSpec.value.network.cidr}'
    
  3. Obtain the public IP address of the related Equinix Metal router:

    1. Log in to the Equinix Metal console of the related project.

    2. In the list of servers, capture the IP address of the related Equinix Metal router server listed in the IPV4 ADDRESS column.

  4. Establish connection to the cluster private network:

    sshuttle <clusterCIDR> -r ubuntu@<routerPublicIP>
    

Now, you can access web UIs of the StackLight services. For details, see Access StackLight web UIs.