gcloud容器使用node taints命令错误创建节点池

时间:2018-05-24 09:51:04

标签: gcloud

该命令有什么问题?

gcloud container node-pools create abcxyz --zone europe-west1-b --cluster wordpress --machine-type g1-small --num-nodes 1 --node-taints=critical_assist=nfs_redis_heapster:NoExecute 
ERROR: (gcloud.container.node-pools.create) unrecognized arguments: --node-taints=critical_assist=nfs_redis_heapster:NoExecute (did you mean '--node-labels'?)
Usage: gcloud container node-pools create NAME [optional flags]
  optional flags may be  --cluster | --disk-size | --enable-cloud-endpoints |
                         --help | --image-type | --machine-type |
                         --node-labels | --num-nodes | --scopes | --tags | -h

有关此命令及其标志的详细信息,请运行:   gcloud容器节点池创建--help

我在这里找到了命令语法:https://cloud.google.com/sdk/gcloud/reference/beta/container/node-pools/create

奇怪的是,我在帮助中看不到任何内容: gcloud beta container node-pools create --help | grep taint

1 个答案:

答案 0 :(得分:2)

gcloud version
Google Cloud SDK 158.0.0
app-engine-python 1.9.54
beta 2017.03.24
bq 2.0.24
core 2017.06.02
gcloud 
gsutil 4.26
kubectl 
Updates are available for some Cloud SDK components.  To install them,
please run:
  $ gcloud components update

我跑了gcloud components update后就修好了。