跳至内容

Kops 编辑集群

kops 编辑集群

编辑集群。

概述

编辑集群配置。

此命令会更改注册表中所需的集群配置。

要设置你喜欢的编辑器,你可以定义 EDITOR 环境变量。完成后,kOps 将使用你设置的编辑器。

kops edit 不会更新云资源;要应用更改,请使用 kops update cluster

kops edit cluster [CLUSTER] [flags]

示例

  # Edit a cluster configuration in AWS.
  kops edit cluster k8s.cluster.site --state=s3://my-state-store

  # Set cluster spec values.
  kops edit cluster testcluster.k8s.local --set spec.kubernetesVersion=1.28.4

选项

  -h, --help            help for cluster
      --set strings     Directly set values in the spec (default [])
      --unset strings   Directly unset values in the spec

从父命令继承的选项

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

另请参阅