mirror of https://github.com/kubernetes/kops.git
49 lines
1.3 KiB
Markdown
49 lines
1.3 KiB
Markdown
|
|
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
|
|
|
## kops get instancegroups
|
|
|
|
Get one or many instance groups.
|
|
|
|
### Synopsis
|
|
|
|
Display one or many instance group resources.
|
|
|
|
```
|
|
kops get instancegroups [INSTANCE_GROUP]... [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
# Get all instance groups in a state store
|
|
kops get instancegroups
|
|
|
|
# Get a cluster's instancegroup
|
|
kops get instancegroups --name k8s-cluster.example.com nodes
|
|
|
|
# Save a cluster's instancegroups desired configuration to YAML file
|
|
kops get instancegroups --name k8s-cluster.example.com -o yaml > instancegroups-desired-config.yaml
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-h, --help help for instancegroups
|
|
```
|
|
|
|
### 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
|
|
-o, --output string output format. One of: table, yaml, json (default "table")
|
|
--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
|
|
|
|
* [kops get](kops_get.md) - Get one or many resources.
|
|
|