After you create either a default or full cluster application group to protect the entire cluster, you might want to create custom application groups for resources that have different backup requirements.
To create a custom application group, do the following:
-
From the Command Center navigation pane, go to Protect > Kubernetes.
-
Click Add application group.
-
Select the cluster to create the application group for, and then click Next.
-
Select an existing backup plan or create a new backup plan, and then click Next.
-
Enter a descriptive name for the application group.
-
Select resources to back up by workload type or by label.
-
Click Add, and then select Workloads.
-
From the Browse list, select All workloads, Virtual machines or Volumes.
Note
PersistentVolume (PV) objects that do not have an associated PersistentVolumeClaim (PVC) are not displayed.
-
Select the resources to back up, and then click Done.
-
Click Add, and then select Label selectors.
-
From the Type list, select Application, Namespaces, or Volumes.
-
Enter the label value.
Label selector requirements
Commvault does not support the following:
-
Using
-A
as the short form of--all-namespaces
. You must use--all-namespaces
. -
Using the
--namespace
parameter as the long form of-n
. You must use-n
.
For example:
-
To select resources in the default namespace, enter enable.backup=true. You can also enter multiple labels as a comma-separated list like enable.backup=true,env=prod.
-
To select resources in all namespaces, enter enable.backup=true --all-namespaces or enable.backup=true,env=prod --all-namespaces.
-
To select resources in a specific namespace, enter enable.backup=true -n
namespace_name
or enable.backup=true,env=prod -nnamespace_name
.
-
-
-
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.
You can exclude the namespaces, Pods, DaemonSets, and other resources in the cluster.
-
Enable the Exclude resources toggle key.
-
From the Exclude list, select Applications.
-
From the Browse list, select All workloads, Virtual machines or Volumes.
-
Select the resources to exclude from back up, and then click Done.
You can select labels and values to exclude resources/objects that have those labels and values.
-
Enable the Exclude resources toggle key.
-
From the Exclude list, select Label selectors.
-
From the Type list, select Application, Namespaces, or Volumes.
-
Enter the label value.
Supported format is
key=value [-n <namespace> | --all-namespaces]
. For example,usage=prod -n dev
. -
Click Add.
-
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.
-
-
To exclude sub-resources of applications from backup such as ConfigMaps, Secrets, Services, PersistentVolumeClaims, etc, configure a rule.
Note
Sub-resources associated with applications deployed via Helm charts cannot be excluded from backups.
Need help with excluding sub-resources?
-
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.
-
-
Click Submit.
-
To run a manual backup, in the upper-right area of the page, click Backup.