2016-04-05 52 views
1

我沿着this指南學習以在GCE上創建多區域Kubernetes部署。當我運行此命令(在博客中給出):啓動Kubernetes多區域羣集 - 服務不可用503後端錯誤

curl -sS https://get.k8s.io | MULTIZONE=1 KUBERNETES_PROVIDER=gce KUBE_GCE_ZONE=us-central1-a NUM_NODES=3 bash

我得到以下輸出:

. 
. 
. 
All components are up to date. 
... calling kube-up 
Your active configuration is: [default] 

Project: *** 
Zone: us-central1-a 
Creating gs://kubernetes-staging-30021049c6 
Creating gs://kubernetes-staging-30021049c6/... 
ServiceException: 503 Backend Error 

的gcloud配置如下:

Your active configuration is: [default] 

[compute] 
region = us-central1 
zone = us-central1-a 
[core] 
account = ***@gmail.com 
disable_usage_reporting = False 
project = *** 
[metrics] 
command_name = gcloud.config.list 

我不確定爲什麼這個集羣沒有出現。任何指針將不勝感激。

謝謝!

+0

我有同樣的錯誤,沒有任何環境變量,'捲曲-sS https://get.k8s.io | bash'。你的環境如何? – gunyarakun

+0

與 相同的錯誤 'KUBERNETES_PROVIDER = gce KUBE_GCE_ZONE = us-central1 -b kubernetes/cluster/kube-up.sh' –

+0

我已經設置了'gcloud'來處理我的個人Gmail帳戶,但沒有環境變量。 – as1901

回答

0

看起來我能夠通過使用個人帳戶和服務帳戶來解決此問題。似乎是在使用服務帳戶在GCE上創建存儲桶時遇到的問題。

gcloud init 
Welcome! This command will take you through the configuration of gcloud. 

Your current configuration has been set to: [default] 

Pick credentials to use: 
[1] [email protected] 
[2] Log in with new credentials 
Please enter your numeric choice: 2 


You are running on a Google Compute Engine virtual machine. 
It is recommended that you use service accounts for authentication. 

You can run: 

    $ gcloud config set account ``ACCOUNT'' 

to switch accounts if necessary. 

Your credentials may be visible to others with access to this 
virtual machine. Are you sure you want to authenticate with 
your personal account? 

Do you want to continue (Y/n)? Y 
+0

嗨,我不認爲我使用服務帳戶,當我做gcloud init時,我看到我的帳戶是「帳戶= [email protected]」,這是一個Google Apps電子郵件地址帳戶。 –

+0

我能夠通過使用Web界面啓動集羣,然後可以使用'kubectl'來管理該集羣,但腳本(問題中提到的上述內容)不適用於我。 – as1901

相關問題