File: //snap/google-cloud-cli/current/lib/surface/container/clusters/config/export.yaml
release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
brief: Export the configuration for a Container cluster.
description: |
*{command}* exports the configuration for a Container cluster.
Cluster configurations can be exported in
Kubernetes Resource Model (krm) or Terraform HCL formats. The
default format is `krm`.
Specifying `--all` allows you to export the configurations for all
clusters within the project.
Specifying `--path` allows you to export the configuration(s) to
a local directory.
examples: |
To export the configuration for a cluster, run:
$ {command} my-cluster
To export the configuration for a cluster to a file, run:
$ {command} my-cluster --path=/path/to/dir/
To export the configuration for a cluster in Terraform
HCL format, run:
$ {command} my-cluster --resource-format=terraform
To export the configurations for all clusters within a
project, run:
$ {command} --all
arguments:
resource:
help_text: Cluster to export the configuration for.
spec: !REF googlecloudsdk.command_lib.container.clusters.resources:cluster
# Inherited from clusters command.
removed_flags: ['location']
command_level_fallthroughs:
location:
- arg_name: 'location'