跳至内容

Kops 工具箱转储

kops 工具箱转储

转储集群信息

概述

显示集群信息。包括有关云和 Kubernetes 资源的信息。

kops toolbox dump [CLUSTER] [flags]

示例

  # Dump cluster information
  kops toolbox dump --name k8s-cluster.example.com

选项

      --dir string           Target directory; if specified will collect logs and other information.
  -h, --help                 help for dump
      --k8s-resources        Include k8s resources in the dump
      --max-nodes int        The maximum number of nodes from which to dump logs (default 500)
  -o, --output string        Output format.  One of json or yaml (default "yaml")
      --private-key string   File containing private key to use for SSH access to instances (default "~/.ssh/id_rsa")
      --ssh-user string      The remote user for SSH access to instances (default "ubuntu")

从父命令继承的选项

      --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

另请参阅