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

您可能還希望向該存儲庫的維護人員發送拉取請求以更新其文檔和/或腳本。