跳到内容

Kops 验证集群

kops validate cluster

验证 kOps 集群。

概要

此命令验证以下组件

  1. 所有控制平面节点都在运行,并具有“就绪”状态。
  2. 所有工作节点都在运行,并具有“就绪”状态。
  3. 所有控制平面节点都具有预期的 Pod。
  4. 所有具有关键优先级的 Pod 都在运行,并具有“就绪”状态。
kops validate cluster [CLUSTER] [flags]

示例

  # Validate the cluster set as the current context of the kube config.
  # Kops will try for 10 minutes to validate the cluster 3 times.
  kops validate cluster --wait 10m --count 3

选项

      --count int           Number of consecutive successful validations required
  -h, --help                help for cluster
      --interval duration   Time in duration to wait between validation attempts (default 10s)
      --kubeconfig string   Path to the kubeconfig file
  -o, --output string       Output format. One of json|yaml|table. (default "table")
      --wait duration       Amount of time to wait for the cluster to become ready

从父命令继承的选项

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

参见