如何打开alpha组件

时间:2017-02-13 08:14:21

标签: meteor kubernetes google-compute-engine google-kubernetes-engine

我正在关注此guide以使用gke在kubernetes上创建一个流星应用。

一开始我被告知打开alpha组件:

  

按照开始之前的步骤创建项目,启用结算,   并激活Container Engine和Compute Engine API。的不要   忘记打开alpha组件!

我不知道怎么做,命令是什么?

当我试图跳过它时,我收到以下错误:

ERROR: (gcloud.alpha.container) Invalid choice: 'kubectl'.
Usage: gcloud alpha container [optional flags] <group | command>
  group may be           builds | clusters | images | node-pools | operations
  command may be         get-server-config

For detailed information on this command and its flags, run:
  gcloud alpha container --help

1 个答案:

答案 0 :(得分:0)

该教程中的命令已过时。不要运行jvm.start(class_path=mypath),而是使用gcloud附带的gcloud alpha container kubectl create -f mongo-pod.json的已安装版本并运行kubectl

同样,当您在脚本中看到kubectl create -f mongo-pod.json时,您应该将其替换为gcloud alpha container replicationcontrollers ...

您可能还希望向该存储库的维护者发送拉取请求以更新其文档和/或脚本。

相关问题