Adding a Cluster

eReplication needs to perform data protection and DR tasks for applications provided by Kubernetes. Therefore, you need to add Kubernetes clusters before creating protected groups.

Prerequisites

Context

A Kubernetes cluster can be added to only one site of eReplication.

Procedure

  1. On the menu bar, click Resources.
  2. On the navigation bar, select the site where the cluster is to be added.
  3. Click Add Kubernetes Container.

    • Method 1: In the Resource Statistics area, click Add Kubernetes Container.

    • Method 2: In the navigation pane, choose kubernetes and click Add Cluster.

  4. Upload the DR Admin configuration file.

    The DR Admin configuration file is the kubeconfig authentication file exported from the Kubernetes cluster. It is used by the DR system to interconnect with the Kubernetes cluster for DR management.

    If the DR Admin configuration file uses the kubeconfig authentication file of a customized user, the user permission must meet Table 2.

    Table 2 Minimum permission set for customized users

    API Provider

    API Groups

    Kind

    Permission

    CDR

    xuanwu.huawei.io

    Backup

    get,list,delete

    CDR

    xuanwu.huawei.io

    Hook

    get,list

    CDR

    xuanwu.huawei.io

    ResourceDetail

    get,list

    CDR

    xuanwu.huawei.io

    BackupJob

    get,list,create,patch

    CDR

    xuanwu.huawei.io

    RecoveryJob

    get,list,create,patch

    CDR

    xuanwu.huawei.io

    RestoreJob

    get,list,create,patch

    CDR

    xuanwu.huawei.io

    ProtectionJob

    get,list,create,patch

    CDR

    xuanwu.huawei.io

    ReProtectionJob

    get,list,create,patch

    CDR

    xuanwu.huawei.io

    Cluster

    get,list,create,delete

    CDR

    xuanwu.huawei.io

    BackupInstance

    get,list,create,delete,update

    CDR

    xuanwu.huawei.io

    BackupLocation

    get,list,create,delete,update

    CDR

    xuanwu.huawei.io

    BackupSchedule

    get,list

    CDR

    xuanwu.huawei.io

    ProtectionPlan

    get,list,create,delete,update,patch

    CDR

    xuanwu.huawei.io

    RecoveryPlan

    get,list,create,delete,update,patch

    CDR

    xuanwu.huawei.io

    ResourceSet

    get,list,create,delete,update,patch

    CDR

    xuanwu.huawei.io

    SchedulePolicy

    get,list,create,delete,update

    CDR

    xuanwu.huawei.io

    VolumeSet

    get,list,create,delete,update

    CSI

    xuanwu.huawei.io

    StorageBackendClaim

    get,list,create,delete,update

    CSI

    xuanwu.huawei.io

    StorageBackendContent

    get,list,create,delete,update

    Kubernetes

    -

    Event

    get,list

    Kubernetes

    -

    Namespace

    get,list,create,delete

    Kubernetes

    storage.k8s.io

    StorageClass

    get,list,create,delete,update

    Kubernetes

    -

    PersistentVolume

    get,list,create,delete,update

    Kubernetes

    -

    PersistentVolumeClaim

    get,list,create,delete,update

    Kubernetes

    -

    Service

    get,list,delete

    Kubernetes

    -

    ConfigMap

    get,list,delete

    Kubernetes

    -

    Secret

    get,list,delete

    Kubernetes

    -

    ServiceAccount

    get,list,delete

    Kubernetes

    rbac.authorization.k8s.io

    ClusterRole

    get,list,delete

    Kubernetes

    rbac.authorization.k8s.io

    ClusterRoleBinding

    get,list,delete

    Kubernetes

    -

    Pod

    get,list,delete,update,patch

    Kubernetes

    apps

    Deployment

    get,list,create,delete,update,patch

    Kubernetes

    apps

    ReplicaSet

    get,list,delete,update,patch

    Kubernetes

    apps

    DaemonSet

    get,list,delete,update,patch

    Kubernetes

    apps

    StatefulSet

    get,list,delete,update,patch

    Kubernetes

    extensions

    Deployment

    get,list,create,delete,update,patch

    Kubernetes

    extensions

    DaemonSet

    get,list,create,delete,update,patch

    Kubernetes

    extensions

    ReplicaSet

    get,list,delete,update,patch

  5. Click OK.

Related Operations

After a cluster is added, you can view, refresh, modify, and delete the cluster information. Table 3 describes the related operations.

Table 3 Related operations

Operation

Method

Prerequisite and Result

View

  • View the cluster information in the cluster list.
  • Filter clusters by Status and view cluster information.
  • Enter a keyword in the Cluster Name, Server IP Address, or User Name column to view the cluster information.

-

Refresh

Locate the row that contains the target cluster and click Refresh in the Operation area.

  • For clusters that have been added to a site, eReplication automatically queries cluster information at an interval of 30 minutes to ensure that the cluster information in eReplication is the same as the actual cluster information.
  • After the cluster information is changed, this operation enables you to manually update the cluster information immediately.

Modify

Locate the row that contains the target cluster, and choose More > Modify in the Operation area.

This operation enables you to upload the DR Admin configuration file and update the DR Admin configuration file information of the cluster.

Delete

Locate the row that contains the target cluster, and choose More > Delete in the Operation area.

This operation enables you to delete unnecessary clusters from a site.

NOTE:

This operation will delete the selected Kubernetes from the system and cannot be undone. Check whether the selected Kubernetes is correct.


Copyright © Huawei Technologies Co., Ltd.