kOps 获取集群
kops 获取集群 ¶
获取一个或多个集群。
概要 ¶
显示一个或多个集群资源。
kops get clusters [CLUSTER]... [flags]
示例 ¶
# Get all clusters in a state store
kops get clusters
# Get a cluster
kops get cluster k8s-cluster.example.com
# Get a cluster YAML desired configuration
kops get cluster k8s-cluster.example.com -o yaml
# Save a cluster desired configuration to YAML file
kops get cluster k8s-cluster.example.com -o yaml > cluster-desired-config.yaml
选项 ¶
--full Show fully populated configuration
-h, --help help for clusters
从父命令继承的选项 ¶
--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
另请参阅 ¶
- kops 获取 - 获取一个或多个资源。