Kontena Lens

From WilliamsNet Wiki
Revision as of 10:34, 26 October 2021 by DrEdWilliams (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Kontena Lens is an IDE for Kubernetes ... from the product documentation:

Lens is the most powerful IDE for people who need to deal with Kubernetes clusters on a daily basis. Ensure your clusters are properly setup and configured. Enjoy increased visibility, real time statistics, log streams and hands-on troubleshooting capabilities. With Lens, you can work with your clusters more easily and fast, radically improving productivity and the speed of business.

Note that this is functionally a replacement for the k8dash dashboard, but it operates as a desktop application instead of as a pod within the cluster being monitored.

Installation

Kontena Lens can be installed via 'snap' on Linux, but that method appears to not work as well as I would have hoped. Updates are irregular, and there seems to be no way to ensure you are at the most current version. Instead, just download the packages from https://k8slens.dev. Packages are available for Windows, MacOS, and RPM/DEB Linux. Newer versions can be installed as they arrive. The Windows version at least tries to let you know a new version is available, but the self-update is not fully reliable.

Configuration

When started, Lens will ask for a kubernetes config file -- either a file on the local system (e.g. ~/.kube/config) or it allows you to paste a config file from another system.

It appears that it expects Prometheus to be installed to get performance data ... in the cluster settings (Alt-Shift-S or File->Cluster Settings) at the bottom it offers to install Prometheus for you. It will allocate a Persistent Volume (PV) if a default storageclass is set up, or just use ephemeral storage within the pods.