see: https://rancher.com/docs/k3s/latest/en/installation/kube-dashboard/
- This should run automatically as part of our Vagrant K3S provisioning.
- The service setup should be via a ClusterIP or similar (or even an ingress, but that is probably overkill) so that the dashboard website is proxied to the Guest operating system so that it is possible to connect to the dashboard from the Host OS on port 8448 (or whatever port TBD).
01-deploy-dashboard.sh
sudo k3s kubectl -n kubernetes-dashboard describe secret admin-user | grep '^token'
You can have the service listen on the clusterip with the below or just use the k3s proxy
sudo k3s kubectl -n kubernetes-dashboard apply -f resources/dashboard.service.yml
Get the IP address
kubectl get service -n kubernetes-dashboard kubernetes-dashboard
sudo k3s kubectl proxy
[http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/]
use the token from above