Skip to main content

Add private and cloud clusters

Connect and add a Kubernetes cluster

This topic explains how to bring-in your private and cloud Kubernetes clusters to Portworx BaaS.

Prerequisites

  • Portworx BaaS organization ADMIN privileges
  • Helm versions 3.x.x. See the Helm documentation to install the latest Helm version.
  • Ensure that Stork version 2.4.0 or newer is running on the cluster.

Connect a cluster

As a Portworx BaaS organization ADMIN, you can connect as many private and cloud clusters such as AKS, EKS, GKE, IBM and add them in the BaaS Clusters page. If you are a Freemium user, then you can add only one cluster.

To connect a Kubernetes cluster in Portworx Baas:

  1. In the Portwox BaaS left panel, select the Clusters icon.

  2. In the Clusters page that appears, select Connect Cluster:

    Connect Cluster button

  3. From the Connect Cluster window, select the Kubernetes or OpenShift tab. These tabs provide specific Helm command to connect the Kubernetes or OCP clusters:

  4. Copy the Helm command:

    Coopy Helm command

  5. In the CLI, navigate to the directory where your cluster exists.

  6. Run the copied Helm command.

    note

    Do not modify this Helm command.

  7. Run the kubectl get ns command to list namespaces. You can notice that a new namespace px-platform-system is created. This namespace includes pods such as teleport, Portworx agent, and so on.

The connected cluster is initialized to be added to the Portworx BaaS Clusters page. Wait for the Portworx agent to register the new cluster to the BaaS control plane. Once successful, the cluster status is displayed as Healthy.

note

After adding a cluster, no other user in an organization can add the same cluster to Portworx BaaS.

Attach an existing cluster to a BaaS service

By default, the cluster that you add is not associated with any BaaS service.

note

You can attach each cluster to only one BaaS service.

To perform Backup operations on the added cluster, you need to attach a cluster to a BaaS service:

  1. In the Portworx BaaS Clusters page -> the cluster you want to attach, select the Attach BaaS Service button:

    Attach BaaS service button

  2. In the Attach BaaS Service window:

    • Cluster Name text box: Specify a name for the cluster.
    • BaaS Service dropdown: Lists all the Enterprise services that you created. From the list, select the service to which you want to attach the cluster.

    Attach BaaS service window

  3. Select Attach.

    The cluster is attached to the BaaS service.

Add credentials to cloud clusters

After attaching cloud clusters to Portworx BaaS, you should select each cluster in BaaS and add cloud credentials for each cluster in the Portworx Backup UI. Without cloud credentials, you cannot use the attached cloud cluster to perform backup operations.

note

You do not need to add cloud credentials for the on-premises clusters.

To add cloud credentails:

  1. In the Portworx Backup -> Clusters page, select the vertical ellipsis button on the cluster you want to add clous credentials and then select Edit.cluster you want to add cloud credentails:

    Edit BaaS Cluster

  2. In the Edit Kubernetes Cluster page -> K8s Cluster Details section, choose GKE.

  3. Below the Cloud Account dropdown, select the Manage Credentials button:

    Manage Credentials button

  4. In the Add Cloud Credentials page, enter valid credentails and then select Add.

  5. After adding the credentails successfully, navigate to the Clusters page and select the Manage Credentials button again.

  6. In the Edit Kubernetes Cluster page -> Cloud Account dropdown, select the added cloud credential.

  7. Select Submit. The status of the cloud cluster is Active, and ready to use:

    Active cloud cluster

Perform backup operations

After attaching a cluster to service, you can use that cluster to perform all Portworx Backup specific operations:

  1. In the Portworx BaaS -> Clusters page, select a BaaS service name to navigate to the Portworx Backup application. The Clusters page displays the cluster that you attached.

  2. You can click on the cluster to start performing backup, restore, and other tasks.

Remove a cluster

In order to remove an existing cluster, you should first make the cluster unhealthy and then remove it.

tip

Ensure to remove any backup schedules associated with the cluster you want to remove.

To remove an existing cluster:

  1. In the Clusters page -> the cluster you want to remove, select the vertical ellipsis icon and then select Initiate Cluster Remove:

    Initiate cluster remove button

  2. In the Initiate Cluster Remove window, copy the Helm command:

    Initiate cluster remove window

  3. On the cluster, run this Helm command to remove the Portworx agent.

    The cluster status becomes Unhealthy.

  4. Select the vertical ellipsis icon again and then select Remove Cluster.

  5. In the Remove Cluster window that appears, select Remove.

    The cluster and its all associated resources are deleted.

Was this page helpful?