Skip to content

Simple process to deploy the Kubernetes Dashboard on local k3s

License

Notifications You must be signed in to change notification settings

fdiinc/k3s-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple process to deploy the Kubernetes Dashboard on local k3s

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages