kops/docs/cli/kops_get.md

1.8 KiB

kops get

Get one or many resources.

Synopsis

Display one or many resources.

  • cluster
  • instancegroup
  • secret
kops get [flags]

Examples

  # Get a cluster and its instance groups
  kops get k8s-cluster.example.com
  
  # Get a cluster and its instancegroups' YAML desired configuration
  kops get k8s-cluster.example.com -o yaml
  
  # Save a cluster and its instancegroups' desired configuration to YAML file
  kops get k8s-cluster.example.com -o yaml > cluster-desired-config.yaml

Options

  -h, --help            help for get
  -o, --output string   output format. One of: table, yaml, json (default "table")

Options inherited from parent commands

      --config string   yaml config file (default is $HOME/.kops.yaml)
      --name string     Name of cluster. Overrides KOPS_CLUSTER_NAME environment variable
      --state string    Location of state storage (kops 'config' file). Overrides KOPS_STATE_STORE environment variable
  -v, --v Level         number for the log level verbosity

SEE ALSO