Your own private Kubernetes cluster at home

So, you decided to setup your own Kubernetes cluster on some old pc or Raspberry Pi you’ve just got laying around. Great! Your own personal private Kubernetes cluster just for you to experiment with, just because you don’t want to use Minikube.

Now for something with a little more cool factor. You’ve heard of Horizontal Pod Auto-scaling: scaling your pods based on metrics served from the cluster. In the cloud, this would be installed by default. But not on our cloud. So what now? What I did, was use the files in the Minikube repo https://github.com/kubernetes/minikube/tree/master/deploy/addons/heapster to install Heapster, Influx and Grafana with the apply command from above.

So Heapster is installed, but we can’t see any graphs in the dashboard. What is going on? As we can see from the logging of the Heapster pod, it cannot scrap the cluster. It hasn’t got the right roles and rights.

Now, delete your pod and let the Replicaset create a new one for you. Let the pod restart and then refresh your dashboard. It should now show you some graphs with CPU and memory stats on them. This means that the auto-scaler should work.