First Steps with Kubernetes (K8s)

I started working with Kubernetes and I recognized that Kubernetes (K8s) is powerful but also very complex.

My attitude with new softeware is:

  • Read about it
  • Try it out to get a “feeling” what is possible.

Let me share my experience with you in the next steps…


Minikube (“local Kubernetes”)

The fastest way to start with K8s is “Minikube”. Minikube is dedicated to “play around” but not for productive installations.

Available informations are here and here.


Mac OS

  1. brew cask install minikube
  2. brew install kubectl
  3. kubectl cluster-info
  4. minikube start –vm-driver=vmwarefusion
  5. kubectl run hello-minikube – –port=8080
  6. kubectl expose deployment hello-minikube –type=NodePort
  7. kubectl get pod
  8. curl $(minikube service hello-minikube –url)
  9. minikube dashboard


Linux (Ubuntu 17.10)

Because of problems with VirtualBox I installed KVM. Also Docker needed an update.

Install KVM

  1. sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
  2. curl -LO
  3. cp docker-machine-driver-kvm-ubuntu16.04 /usr/local/bin/docker-machine-driver-kvm
  4. chmod +x /usr/local/bin/docker-machine-driver-kvm


Install kubectl

curl -LO$(curl -s
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

Install minikube

curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/

Update Docker at your Ubuntu 17.10 with

  1. sudo vi /etc/apt/sources.list and change/insert the following lines
deb [arch=amd64] zesty stable
# deb-src [arch=amd64] zesty stable

2. Add the Docker GPG Key and install Docker CE

$ sudo curl -fsSL | sudo apt-key add -
sudo apt-get update
sudo apt-get install docker-ce
sudo groupadd docker
 sudo usermod -aG docker $USER


Start and use minikube

  1. minikube start –vm-driver=kvm
  2. kubectl run hello-minikube – –port=8080
  3. kubectl expose deployment hello-minikube –type=NodePort
  4. curl $(minikube service hello-minikube –url)
  5. minikube dashboard
  6. kubectl proxy

Details will follow…




  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: