faun / workshop

Docker and Kubernetes Training by Gravitational

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gravitational Workshops

Open source series of workshops delivered by Gravitational services team.

Installation

Requirements

You will need Mac OSX with at least 7GB RAM and 8GB free disk space available.

  • docker 17.03.2-ce
  • VirtualBox
  • kubectl 1.9.0
  • minikube 0.25.0

Docker

For Linux: follow instructions provided here.

If you have Mac OS X (Yosemite or newer), please download Docker for Mac here.

Older docker package for OSes older than Yosemite -- Docker Toolbox located here.

VirtualBox

Let’s install VirtualBox first.

Get latest stable version from https://www.virtualbox.org/wiki/Downloads

Linux: KVM2

Follow the instructions here: https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver

Kubectl

For Mac OS X:

curl -O https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/darwin/amd64/kubectl \
    && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

For Linux:

curl -O https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl \
    && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

Minikube

For Mac OS X:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-darwin-amd64 \
    && chmod +x minikube && sudo mv minikube /usr/local/bin/

For Linux:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64 \
    && chmod +x minikube && sudo mv minikube /usr/local/bin/

Also, you can install drivers for various VM providers to optimize your minikube VM performance. Instructions can be found here: https://github.com/kubernetes/minikube/blob/master/docs/drivers.md.

Xcode and local tools

Xcode will install essential console utilities for us. You can install it from AppStore.

Set up cluster using minikube

To run cluster:

Mac OS

# starts minikube
minikube start --kubernetes-version=v1.9.0
# this command should work
kubectl get nodes
# use docker from minikube
eval $(minikube docker-env)
# this command to check connectivity
docker ps

Linux

# starts minikube
minikube start --kubernetes-version=v1.9.0 --vm-driver=kvm2
# this command should work
kubectl get nodes
# use docker from minikube
eval $(minikube docker-env)
# this command to check connectivity
docker ps

About

Docker and Kubernetes Training by Gravitational

License:Apache License 2.0


Languages

Language:Python 55.8%Language:Dockerfile 34.3%Language:Shell 7.5%Language:C 2.4%