Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.21 KB

Deploy the Kubernetes Dashboard to K3S

see: https://rancher.com/docs/k3s/latest/en/installation/kube-dashboard/

TODO

  1. This should run automatically as part of our Vagrant K3S provisioning.
  2. 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).

Instructions

Deploy the Dashboard

01-deploy-dashboard.sh

Obtain a login token to use in next step

sudo k3s kubectl -n kubernetes-dashboard describe secret admin-user | grep '^token'

Access the Dashboard

via access service

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

Or use the Proxy

sudo k3s kubectl proxy

[http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/]

Login

use the token from above