Skip to main content
Version: 2.10

Back up 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:

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 <stork-namespace>
  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