calicoctl datastore migrate export

This sections describes the calicoctl datastore migrate export command.

Read the calicoctl Overview for a full list of calicoctl commands.

Display the help text for ‘calicoctl datastore migrate export’ command

Run calicoctl datastore migrate export --help to display the following help menu for the command.

  1. Usage:
  2. calicoctl datastore migrate export [--config=<CONFIG>]
  3. Options:
  4. -h --help Show this screen.
  5. -c --config=<CONFIG> Path to the file containing connection
  6. configuration in YAML or JSON format.
  7. [default: /etc/calico/calicoctl.cfg]
  8. Description:
  9. Export the contents of the etcdv3 datastore. Resources will be exported
  10. in yaml and json format. Save the results of this command to a file for
  11. later use with the import command.
  12. The resources exported include the following:
  13. - IPAMBlocks
  14. - BlockAffinities
  15. - IPAMHandles
  16. - IPAMConfigurations
  17. - IPPools
  18. - BGPConfigurations
  19. - BGPPeers
  20. - ClusterInformations
  21. - FelixConfigurations
  22. - GlobalNetworkPolicies
  23. - GlobalNetworkSets
  24. - HostEndpoints
  25. - KubeControllersConfigurations
  26. - NetworkPolicies
  27. - Networksets
  28. - Nodes
  29. The following resources are not exported:
  30. - WorkloadEndpoints
  31. - Profiles

Exported resources

The export subcommand exports the following Calico resources:

  • IPAMBlocks
  • BlockAffinities
  • IPAMHandles
  • IPAMConfigurations
  • IPPools
  • BGPConfigurations
  • BGPPeers
  • ClusterInformations
  • FelixConfigurations
  • GlobalNetworkPolicies
  • GlobalNetworkSets
  • HostEndpoints
  • NetworkPolicies
  • Networksets
  • Nodes

The export subcommand does not export the following resources since they should be generated:

  • WorkloadEndpoints
  • Profiles

Examples

Export the contents of an etcdv3 datastore to a file named etcd-migration.

  1. calicoctl datastore migrate export > etcd-migration

General options

  1. -c --config=<CONFIG> Path to the file containing connection
  2. configuration in YAML or JSON format.
  3. [default: /etc/calico/calicoctl.cfg]

See also