Using Labels to Automatically Discover Applications or Other Objects for Kubernetes

Updated

On this page

You can use labels to automatically discover applications or other objects. Commvault searches for all API resources in a namespace, and includes the API resources in backups.

Procedure

  1. From the navigation pane, go to Protect > Kubernetes.

    The Clusters page appears.

  2. In the Name column, click the cluster.

    The cluster page appears.

  3. Click an application group.

    The application group properties page appears.

  4. Under Content, click Manage.

    The Application group content dialog box appears.

  5. To define labels to automatically discover applications or other objects, perform the following steps:

    1. Click Add Label selector.

      The Add Label selector page appears.

    2. In the Value box, type the label associated with a Kubernetes object.

      Examples of apptype label

      • To discover all production applications that have the label apptype=production in the development namespace, enter the following:

        apptype=production -n development
      • To discover all production applications from all namespaces that have the label apptype=production, enter the following:

        apptype=production --all-namespaces

        Note: You cannot use wildcards in labels.

    3. Click OK.

  6. Click OK.