From d51c071982ce0384480288143e6c97c49f90f564 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Fri, 10 Oct 2014 21:23:12 -0700 Subject: [PATCH] Update README and getting started guide --- README.md | 2 +- docs/getting-started-guides/vsphere.md | 43 +++++++++++--------------- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 97e080c8f1806..b070fc57d1285 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ While the concepts and architecture in Kubernetes represent years of experience * [OpenStack](https://developer.rackspace.com/blog/running-coreos-and-kubernetes/) * [CloudStack](docs/getting-started-guides/cloudstack.md) * [Rackspace](docs/getting-started-guides/rackspace.md) + * [vSphere](docs/getting-started-guides/vsphere.md) * The following clouds are currently broken at Kubernetes head. Please sync your client to `v0.3` (`git checkout v0.3`) to use these: * [Locally](docs/getting-started-guides/locally.md) - * [vSphere](docs/getting-started-guides/vsphere.md) * [Microsoft Azure](docs/getting-started-guides/azure.md) * [Kubernetes 101](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/walkthrough) * [kubecfg command line tool](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/cli.md) diff --git a/docs/getting-started-guides/vsphere.md b/docs/getting-started-guides/vsphere.md index fedeb421beb6a..98ed0e469960a 100644 --- a/docs/getting-started-guides/vsphere.md +++ b/docs/getting-started-guides/vsphere.md @@ -1,10 +1,10 @@ -# WARNING -These instructions are broken at git HEAD. Please either: -* Sync back to `v0.3` with `git checkout v0.3` -* Download a [snapshot of `v0.3`](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz) - ## Getting started with vSphere +The example below creates a Kubernetes cluster with 4 worker node Virtual +Machines and a master Virtual Machine (i.e. 5 VMs in your cluster). This +cluster is set up and controlled from your workstation (or wherever you find +convenient). + ### Prerequisites 1. You need administrator credentials to an ESXi machine or vCenter instance. @@ -23,15 +23,7 @@ These instructions are broken at git HEAD. Please either: go get github.com/vmware/govmomi/govc ``` -5. Install godep (optional, only required when modifying package dependencies). [Instructions here](https://github.com/GoogleCloudPlatform/kubernetes#installing-godep) - -6. Get the Kubernetes source: - - ```sh - mkdir -p $GOPATH/src/github.com/GoogleCloudPlatform - git clone https://github.com/GoogleCloudPlatform/kubernetes.git - cd kubernetes - ``` +5. Get or build a [binary release](binary_release.md) ### Setup @@ -46,7 +38,7 @@ gzip -d kube.vmdk.gz Upload this VMDK to your vSphere instance: ```sh -export GOVC_URL='https://user:pass@hostname/sdk' +export GOVC_URL='user:pass@hostname' export GOVC_INSECURE=1 # If the host above uses a self-signed cert export GOVC_DATASTORE='target datastore' export GOVC_RESOURCE_POOL='resource pool or cluster with access to datastore' @@ -63,18 +55,12 @@ govc datastore.ls ./kube/ Take a look at the file `cluster/vsphere/config-common.sh` fill in the required parameters. The guest login for the image that you imported is `kube:kube`. -Now, let's continue with deploying Kubernetes: +### Starting a cluster -```sh -cd kubernetes - -# Build source -hack/build-go.sh - -# Build a release (argument is the instance prefix) -release/build-release.sh kubernetes +Now, let's continue with deploying Kubernetes. +This process takes about ~10 minutes. -# Deploy Kubernetes (takes ~5 minutes, provided everything works out) +```sh export KUBERNETES_PROVIDER=vsphere cluster/kube-up.sh ``` @@ -84,3 +70,10 @@ Engine. Once you have successfully reached this point, your vSphere Kubernetes deployment works just as any other one! **Enjoy!** + +### Extra: debugging deployment failure + +The output of `kube-up.sh` displays the IP addresses of the VMs it deploys. You +can log into any VM as the `kube` user to poke around and figure out what is +going on (find yourself authorized with your SSH key, or use the password +`kube` otherwise).