Charlie Drage

Kubernetes local development cluster up in one command

UPDATE 11/28/2016: I’d recommend using minikube or oc cluster up instead.

If you’d still like access to this script, It’s most likely still in my dotfiles

Want a Kubernetes / k8s local development cluster without having to follow an installation guide, grab the latest containers, etc?

Simply add this to your .bashrc (or source foobar.sh it, whatever you’d like) and run dev_k8s up. Need to take it down? dev_k8s down.

Oh, the only things you need is docker and the kubectl binary installed, but I assume you already have that :)

Usage:

▶ dev_k8s
Kubernetes dev environment

Usage: 
 dev_k8s {up|down|restart|clean|gui|dns|pv}

Methods: 
 up
 down
 restart
 clean - returns k8s env to a clean slate
 gui - ui for k8s at localhost:9090
 dns - deployment of skydns / name resolution
 pv - creates a 20Gb persistent volume named foobar at /tmp/foobar

Script:

REMOVED

Comments