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
729 stars 711 forks source link

Fail trying to reach dashboard #66

Open devleejb opened 7 months ago

devleejb commented 7 months ago

When run kubectl proxy and access http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/login, below error occurs.

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "error trying to reach service: dial tcp 10.85.0.2:8443: connect: connection refused",
  "reason": "ServiceUnavailable",
  "code": 503
}

Is there any other solution?

mlkiefer commented 6 months ago

I had the same error. It fixed itself when I killed the dashboard-metrics-scraper and kubernetes-dasbhboard pods. The ones that came up afterwards work fine

viguice commented 6 months ago

Same for me here and works also after killing the pods.