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
-
From the Command Center navigation pane, go to Protect > Kubernetes.
-
On the Application groups tab, click the application group.
Exclude Resources by Application
When you select by application, you can exclude the namespaces, Pods, DaemonSets, and other resources in the cluster.
-
On the Content tab, in the Content section, click the edit button
. -
Enable the Exclude resources toggle key.
-
From the Exclude list, select Applications.
-
From the Browse list, select the option that displays the resources/objects that you want to select:
-
All workloads: Displays the cluster, each namespace, and Pods, DaemonSets, Deployments, StatefulSets, Helm-deployed applications, and virtual machines within the namespace.
-
Virtual machines: Displays the cluster, each namespace, and virtual machines within the namespace.
-
Volumes: Displays the cluster, each namespace, and any PersistentVolumeClaims (PVCs) within the namespace.
If a namespace does not contain any PersistentVolumeClaim (PVC) objects, the namespace is displayed as empty.
PersistentVolume (PV) objects that do not have an associated PersistentVolumeClaim (PVC) are not displayed.
-
-
Select the resources to exclude from backup, and then click Done.
Exclude Resources by Label
When you select by label, you can select labels and values to exclude resources/objects that have those labels and values.
-
On the Content tab, in the Content section, click the edit button
. -
Enable the Exclude resources toggle key.
-
From the Exclude list, select Label selectors.
-
From the Type list, select Application, Namespaces, or Volumes.
-
For Value, enter the label value. Supported format is
key=value [-n <namespace> | --all-namespaces]. For example,usage=prod -n dev. -
Click Add.
Exclude Resources by Rule
You can exclude Kubernetes resources from backups by configuring rule(s) based on the resource Kind, Group, Version, Namespace, Name, and Label. Applications such as Pod, Deployment, StatefulSet can be excluded from backups.
Note
Applications deployed via Helm charts cannot be excluded from backups.
-
On the Content tab, in the Content section, click the edit button
. -
Enable the Exclude resources toggle key.
-
From the Exclude list, select Exclude by Rule.
-
From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.
-
Click Save.
Exclude Sub-Resources by Rule
You can exclude sub-resources of applications from backup such as ConfigMaps, Secrets, Services, PersistentVolumeClaims, etc.
Note
When Helm-based backups are used, sub-resources associated with applications deployed via Helm charts cannot be excluded from backups.
-
On the Content tab, in the Content section, click the edit button
. -
Enable the Exclude sub-resources toggle key.
-
From the Exclude list, select Exclude by Rule
-
From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.
-
Click Save.