All Products
Search
Document Center

Container Service for Kubernetes:Use MCS in the ACK One console

Last Updated:Dec 13, 2023

The multi-cluster Services (MCS) feature allows you to access Services across Kubernetes clusters without the need to create load balancers. This topic describes how to use the MCS feature in the Distributed Cloud Container Platform for Kubernetes (ACK One) console.

Overview

The MCS feature allows you to access Services across ACK clusters. The following figure shows the architecture of the MCS feature.

多集群服务

  1. The administrator creates application-related resources, such as namespaces, Deployments, and Services, on the master instance through Connection 0, and creates application propagation policies to distribute the resources to ACK Cluster 1 through Connection 1.

  2. The administrator creates a ServiceExport and a ServiceImport on the master instance through Connection 0, and creates application propagation policies to distribute the ServiceExport to ACK Cluster 1 and the ServiceImport to ACK Cluster 2.

  3. The client pod in ACK Cluster 2 can access Service 1 in ACK Cluster 1.

    Note

    In the preceding Step 1 and Step 2, a master instance is used to distribute namespaces, Deployments, Services, a ServiceExport, and a ServiceImport to ACK Cluster 1 and ACK Cluster 2. You can also directly create these resources in ACK Cluster 1 and ACK Cluster 2 for cross-cluster Service access.

Prerequisites

Create a multi-cluster Service

  1. Log on to the ACK One console. In the left-side navigation pane, choose Fleet > MCS.

  2. On the MCS page, click Create Multi-cluster Service.

  3. In the Create Multi-cluster Service panel, configure the Service Provider Cluster and Namespace parameters, and select a Service in the Available Services section. Select a cluster from the Service Consumer Cluster drop-down list. Then, click OK.

    create

    On the MCS page, you can view information about the Service that you selected.

Delete a multi-cluster Service

On the MCS page, find the Service that you want to delete and click Delete in the Actions column.