6.8. Using the Kubernetes Dashboard
Kubernetes comes with the Kubernetes Dashboard, a web-based user interface (UI).
To facilitate installing and interacting with the Kubernetes Dashboard, the LOCKSS Installer offers the dashboard-util script.
6.8.1. Installing the Kubernetes Dashboard
To install the Kubernetes Dashboard, run this command 1:
If the installation succeeds, the program will also display the login URL and the bearer token.
6.8.2. Accessing the Kubernetes Dashboard
To access the Kubernetes Dashboard:
Create a secure channel to your K3s cluster with the following command:
k3s kubectl proxy &
This command runs in the background "forever".
Obtain the login URL with the following command:
Obtain the login token with the following command:
Open a browser and go to the login URL.
Make sure the Token radio button is selected.
Copy and paste the login token into the Enter token text field.
6.8.3. Using the Kubernetes Dashboard UI
When the dashboard comes up, it will be in the default namespace. Click on the namespace pull-down menu near the top and select the
lockss namespace to see the LOCKSS components. If all of your deployments are running and ready, the three circles at the top should be green. In the left hand panel you can select the components you are interested in:
Click on Services to see the cluster IP for each of the running services. You can click on a specific service to see more detailed information.
Click on Deployments to see a list of services and their CPU and memory usage. You can access specific services and deployments from here.
Click on Pods. This will give you information about all the pods running. Click on a pod of interest to obtain more granular information:
- View logs
Since LOCKSS output logs are persisted to a local directory, there will be very little in the Kubernetes logs if the container came up without errors.
- Exec into pods
This will open a terminal window into the container.
- Edit the pod resource
This will allow you to view and edit the YAML file which was used to start the pod. The edit will not persist on restart.
- Delete the pod
While this will delete the current pod, a new pod will be spawned by the deployment with a new pod ID.
6.8.4. Updating the Kubernetes Dashboard
To update the Kubernetes Dashboard to the most recent release, run this command 1:
6.8.5. Removing the Kubernetes Dashboard
To remove the Kubernetes Dashboard from the
kubernetes-dashboard namespace, run this command 1:
Web UI (Dashboard) on the Kubernetes website.
This command is relative to the