Launching Kubernetes Multi Zone Cluster - Service unavailable 503 Backend Error

4/5/2016

I am following along this tutorial to create a multi-zone Kubernetes deployment on GCE. When I run this command (as given in the blog post):

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

I get the following output:

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

The gcloud config is the following:

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

I'm not sure why the cluster isn't coming up. Any pointers will be much appreciated.

Thanks!

-- as1901
gcloud
google-compute-engine
kubernetes

2 Answers

4/6/2016

Looks like I was able to get past this issue by using a personal account vs a service account. Seems to be an issue with creating the bucket on GCE with the service account.

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] XXXXXXXX-compute@developer.gserviceaccount.com
 [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
-- kelseyhightower
Source: StackOverflow

4/7/2016

The workaround here works:

https://github.com/kubernetes/kubernetes/issues/23933#issuecomment-206561712

Add the following to $HOME/.boto:

[GSUtil]
prefer_api = xml
-- Vicken Simonian
Source: StackOverflow