Adding heapster metrics to a Kubernetes dashboard on ARM with RBAC

By | May 26, 2018

Adding heapster metrics to a Kubernetes dashboard on ARM with RBAC

Prerequisites: You have a kubernetes cluster with the dashboard plugin installed, see the article from Martin Jensen entitled Kubernetes dashboard on ARM with RBAC for the instructions on how to do that.

Kubernetes dashboard on ARM with RBAC

In the recent guide about setting up Kubernetes 1.9.0 using kubeadm on Raspberry Pis, RBAC was enabled by default. This…
kubecloud.io
$ git clone https://github.com/kubernetes/heapster.git
$ cd heapster/deploy/kube-config/influxdb
and edit the heapster.yaml and influxdb.yaml files to change the image architecture from -amd64 to -arm. For example image: k8s.gcr.io/heapster-amd64:v1.4.2 should be changed to image: k8s.gcr.io/heapster-arm:v1.4.2

$ kubectl create -f influxdb.yaml
$ kubectl create -f heapster.yaml
to deploy the heapster and influxeb deployment, service and serviceaccounts.

Now we need to add the roles from heapster/deploy/kube-config/rbac/.

$ cd heapster/deploy/kube-config/rbac/
$ kubectl create -f heapster-rbac.yaml
If you go back to the kubernetes dashboard, you will not see any metrics. They are being collected but will not appear until we restart the dashboard.

$ kubectl delete -n kube-system kubernetes-dashboard-7fcc5cb979–85vt5
should take care of that.

Сomments аrchive