Backup CRDs with operator
Backup CRDs in multiple groups with operator
If you are running applications with operator deployments having CRDs in multiple groups you can use:
TRIM_CRD_GROUP_NAME
operator in kdmp-config map to enable Stork to back up all these CRDs.
To enable Stork to create a backup:
Run the following command to edit the kdmp-config config map present in the kube-system namespace:
kubectl edit cm kdmp-config -n kube-system
Add the following parameter along with common group name in the data section:
TRIM_CRD_GROUP_NAME: <common_group_name>
Let us consider an example below where group names are
agent.k8s.elastic.co
,apm.k8s.elastic.co
, andbeat.k8s.elastic.co
. Clearly, group names are different though they belong to same operator and the common group name isk8s.elastic.co
. In such cases, update the config map with the common group name:agents.agent.k8s.elastic.co apmservers.apm.k8s.elastic.co beats.beat.k8s.elastic.co
Last edited: Tuesday, May 16, 2023
Questions? Visit the Portworx forum.