-1

我正在关注这个guide在kubernetes上用gke创建一个流星应用程序。如何打开阿尔法组件

就在年初,有人告诉我把alpha组件上:

Follow the steps in Before You Begin to create a project, enable billing, and activate the Container Engine and Compute Engine APIs. Don't forget to turn on the alpha component!

我不知道如何处理,什么是它的命令?

,当我试图跳过它,我得到了以下错误:

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 

回答

0

该教程的命令是非常不合时宜的。不要运行gcloud alpha container kubectl create -f mongo-pod.json,请使用随gcloud一起提供的已安装版本kubectl并运行kubectl create -f mongo-pod.json

同样,当您在脚本中看到gcloud alpha container replicationcontrollers ...时,应将其替换为kubectl replicationcontrollers ...

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