Kontena Lens: Difference between revisions

From WilliamsNet Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: visualeditor
 
Line 5: Line 5:
__NOTOC__
__NOTOC__
== Installation ==
== Installation ==
Kontena Lens is installed via 'snap' on Linux.  These instructions are excerpted from https://snapcraft.io/kontena-lens
Kontena Lens can be installed via 'snap' on Linux, but that method appears to not work as well as I would have hopedUpdates 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.
 
=== Enable snapd ===
First install/enable snapd if it isn't already active.
 
==== CentOS/Fedora ====
Snap is available for CentOS 7.6+, and Red Hat Enterprise Linux 7.6+, from the Extra Packages for Enterprise Linux (EPEL) repository.
  sudo yum install snapd
Once installed, the systemd unit that manages the main snap communication socket may need to be enabled:
  sudo systemctl enable --now snapd.socket
To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:
sudo ln -s /var/lib/snapd/snap /snap
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
 
==== Debian ====
Debian is more straightforward:
sudo apt update
sudo apt install snapd
sudo snap install core
 
=== Install Lens ===
To install Lens, simply use the following command:
sudo snap install kontena-lens --classic


== Configuration ==
== Configuration ==
When started, Lens will ask for a kubernetes config file -- either a file on the local system (e.g. ''~/.kube/config'') or allows you to paste a config file from another system.
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 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.

Latest revision as of 10:34, 26 October 2021

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[edit]

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[edit]

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.