# Excluding Kubernetes workloads or resources from an application group

You can exclude Kubernetes workloads (virtual machines and applications) or resources from an application group so that they are not backed up.

Excluding workloads is particularly useful when you use namespace-centric protection to back up the entire cluster. With namespace-centric protection, you can exclude applications and virtual machines that do not require protection, while still ensuring that new applications and data are discovered and protected.

Important

- If you exclude a workload that is specifically selected or is the only content selected to back up, then the workload is still backed up. If you add content as namespace or label selector and exclude a single or multiple workloads, then the workload is excluded from back up.

- The exclude Kubernetes resources and sub-resources by rule feature requires Commvault 11.38.24 or a more recent version.

## Go to the application group

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

2. On the Application groups tab, click the application group.

## Exclude resources

Exclude applications or resources from an application group so that they are not backed up. Resources are objects that can be listed, created, or re-created using the Kubernetes API server, while sub-resources are objects associated with those resources.

1. On the Content tab, in the Content section, click the edit button .

2.To exclude the resources, do the following:

By application

You can exclude the namespaces, Pods, DaemonSets, and other resources in the cluster.

1. Enable the Exclude resources toggle key.

2. From the Exclude list, select Applications.

3. From the Browse list, select All workloads, Virtual machines or Volumes.

4. Select the resources to exclude from back up, and then click Done.

By label

You can select labels and values to exclude resources/objects that have those labels and values.

1. Enable the Exclude resources toggle key.

2. From the Exclude list, select Label selectors.

3. From the Type list, select Application, Namespaces, or Volumes.

4. Enter the label value.

   Supported format is `key=value [-n <namespace> | --all-namespaces]`. For example, `usage=prod -n dev`.

5. Click Add.

By rule

1. Enable the Exclude resources toggle key.

2. From the Exclude list, select Exclude by Rule.

3. From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.

4. Click Save.

## Exclude sub-resources

You can exclude sub-resources of applications from backup such as ConfigMaps, Secrets, Services, PersistentVolumeClaims, etc by configuring a rule.

Note

Sub-resources associated with applications deployed via Helm charts cannot be excluded from backups.

1. Enable the Exclude sub-resources toggle key.

2. From the Exclude list, select Exclude by Rule.

3. From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.

4. Click Save.

## Exclude PVCs

You can exclude workload PVCs from backup by selecting specific PVCs using Browse option or by defining filter criteria.

Use Browse option

1. Enable the Exclude PVCs toggle key.

2. Click Browse.

3. Browse and select PVCs associated with content in the VM group.

4. Click Ok.

Define filter criteria

1. Enable the Exclude PVCs toggle key.

2. Click Add.

3. For Volume filter type, select PVC name or pattern or Application label or VM label.

   Supported wildcard patterns

   For PVC name or pattern, the following wildcard patterns are supported:

   - abc* – matches PVC names that start with abc.

   - *abc – matches PVC names that end with abc.

   - *abc* – matches PVC names that contain abc.

   - * – matches all PVC names (excludes all PVCs).

4. Click Ok.

×

Loading...