Kubernetes

Docker containers orchestration

Homepage k8s
License Apache 2.0
Install Google repo
Addon Minikube (github)
Addon Helm (github)

Note Currently, Kubernetes requires swap to be turned off.

Minikube

At the time of writing Minikube bootstraps a v1.10 k8s cluster.

CLI tools (minikube, kubectl, helm) come with bash completion:

Install without VM

If you want to use  Virtualbox hypervisor instead, remove the --vm-driver arg.

Note docker service is disabled by default, enable it in  Sandwich menu.

sudo -E minikube start --vm-driver=none
minikube status
kubectl get all --all-namespaces
browse http://$( kubectl get service/kubernetes-dashboard --namespace kube-system --no-headers | awk '{print $3}' )

Using helm

Example: installing HackMD.

helm init
helm install stable/hackmd
minikube service list

Alternative: MicroK8s

At the time of writing MicroK8s bootstraps a v1.12 k8s cluster.

Note snapd service is disabled by default, enable it in  Sandwich menu.

sudo snap install microk8s --classic
microk8s.start
microk8s.enable dns dashboard
microk8s.kubectl get all --all-namespaces
browse https://$( microk8s.kubectl get service/kubernetes-dashboard --namespace kube-system --no-headers | awk '{print $3}' )