Deploying Kubernetes on vSphere

Kubernetes can be installed on vSphere with the help of govc (a vSphere CLI built on top of govmomi):

  1. Before starting the setup, we'll have to install golang, which can be done in the following way on a Linux machine:
            $ wget https://storage.googleapis.com/golang/go1.7.3.linux-  
              amd64.tar.gz
        
            $ tar -C /usr/local -xzf go1.7.3.linux-amd64.tar.gz
            
            $ go
        
            Go is a tool for managing Go source code.
            Usage:
              go command [arguments]
    
    
  2. Set the go path:
    $ export GOPATH=/usr/local/go
    $ export PATH=$PATH:$GOPATH/bin
    
  3. Download the pre-built Debian VMDK, which will be used to create the Kubernetes cluster on vSphere:

            $ curl --remote-name-all https://storage.googleapis.com/
            govmomi/vmdk/2016-01-08/kube.vmdk.gz{,.md5}

Get Troubleshooting Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.