techiescamp / vagrant-kubeadm-kubernetes

Vagrantfile & Scripts to setup Kubernetes Cluster using Kubeadm for CKA, CKAD and CKS practice environment
https://devopscube.com/kubernetes-cluster-vagrant/
GNU General Public License v3.0
662 stars 672 forks source link

Install dashboard by default while making it easy to disable #37

Closed chriswells0 closed 1 year ago

chriswells0 commented 1 year ago

I started this change by moving the dashboard version into the config and installing it during provisioning. However, after doing that, I saw the issue with the dashboard not coming up as you mentioned in #32. I suspected a timing issue since it had worked for me previously when I stepped away for a while and then installed it manually.

It seems that the dashboard depends on the metrics scraper, which depends on the metrics server. The fix I implemented is to wait for the metrics server to be ready before installing the dashboard. Please test the change a few times yourself before merging in case it needs an additional wait period.