跳至内容

kops create

kops create

通过命令行、文件名或标准输入创建资源。

概要

创建资源

  • 集群
  • 实例组
  • 秘密

使用命令行参数、YAML 配置规范文件或标准输入创建集群、实例组、密钥对或秘密。(注意:密钥对和秘密目前无法从 YAML 配置文件创建)。

kops create {-f FILENAME}... [flags]

示例

  # Create a cluster from the configuration specification in a YAML file.
  kops create -f my-cluster.yaml

  # Create an instancegroup based on the YAML passed into stdin.
  cat instancegroup.yaml | kops create -f -

选项

  -f, --filename strings   Filename to use to create the resource
  -h, --help               help for create

从父命令继承的选项

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

参见