Kontena Lens: Difference between revisions

From WilliamsNet Wiki
Jump to navigation Jump to search
(Created page with "Kontena Lens is an IDE for Kubernetes ... from the product documentation: <blockquote>Lens is the most powerful IDE for people who need to deal with Kubernetes clusters on a d...")
 
mNo edit summary
Line 32: Line 32:
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 allows you to paste a config file from another system.


It appears that it expects Prometheus to be installed to get performance data ... will have to research that ...
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.

Revision as of 00:54, 26 December 2020

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 is installed via 'snap' on Linux. These instructions are excerpted from https://snapcraft.io/install/kontena-lens

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

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.

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.