Skip to main content
Version: 2.7

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:

  1. Run the following command to edit the kdmp-config ConfigMap present in the kube-system namespace:

    kubectl edit cm kdmp-config -n kube-system
  2. 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 where group names are agents.agent.k8s.elastic.co, apmservers.apm.k8s.elastic.co, and beats.beat.k8s.elastic.co. Clearly, group names are different though they belong to same operator and the common group name is k8s.elastic.co.

    In such cases, update the kdmp-config ConfigMap with the common group name:

    TRIM_CRD_GROUP_NAME: k8s.elastic.co
Was this page helpful?