kops get

kops get

Get one or many resources.

Synopsis

Display one or many resources.

  • cluster
  • instancegroup
  • secret
  1. kops get [flags]

Examples

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

Options

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

Options inherited from parent commands

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

SEE ALSO