123DevOps··7 min read

What is Freelens? The free and open source IDE for Kubernetes

Learn what Freelens is, where it came from, what you can do with it, how to install it on macOS, Linux, and Windows, how to connect safely using a read-only context, and when kubectl is still the better choice.

Containers

kubectl is powerful, but investigating an incident by typing get, describe, and logs across ten different pods gets tiring — and for beginners, the black screen is intimidating. That’s where graphical interfaces for Kubernetes come in. Freelens is one of them: a free desktop app that shows your cluster in windows, tabs, and clickable lists, without hiding the YAML behind it.

What Freelens is

Freelens describes itself as a “free IDE for Kubernetes”: a free and open source (MIT license) desktop user interface for managing Kubernetes clusters on macOS, Windows, and Linux. It’s built with Electron and runs on your machine, talking directly to the Kubernetes API using the credentials in your kubeconfig — the file (by default at ~/.kube/config) that stores cluster addresses, users, and contexts, which are “cluster + user + namespace” combinations.

In other words: Freelens doesn’t install anything in the cluster to work. It sees exactly what your credentials allow it to see. If the Kubernetes API is still a mystery, start with how Kubernetes works.

Where it came from

For years, Lens was one of the most popular desktop interfaces for Kubernetes. Today it belongs to Mirantis and has moved to a commercial model; OpenLens, the open source base of Lens, stopped having builds published. Freelens emerged as a community-maintained, open source continuation of OpenLens, keeping the familiar Lens-family experience under a permissive license.

What you can do with it

The main features are the ones you’d expect from the Lens family:

  • Switch between clusters and contexts with one click;
  • Browse workloads: pods, Deployments, StatefulSets, DaemonSets, Jobs;
  • View container logs in real time;
  • Open a shell inside a pod through the built-in terminal;
  • Edit a resource’s YAML directly;
  • Follow cluster events (where scheduling and image errors show up);
  • List Helm releases — if Helm is new to you, see what is Helm;
  • See CPU and memory metrics when Prometheus or metrics are available in the cluster;
  • Port-forward to reach a service locally.

Requirements and installation

The project recommends clusters running Kubernetes 1.22 or later (older clusters fall back to the bundled kubectl). There are builds for amd64 and arm64.

System Minimum requirement Ways to install
macOS macOS 13 Homebrew
Linux glibc 2.34+ (Debian 12, Ubuntu 22.04, Fedora 35…) DEB, RPM, AppImage, Flatpak, Snap, APT repository, AUR
Windows Windows 10 EXE, MSI, portable version, WinGet
# macOS
brew install --cask freelens

# Linux via Flatpak
flatpak install flathub app.freelens.Freelens

# Linux via Snap
sudo snap install freelens --classic

# Arch Linux (AUR), with your favorite helper
yay -S freelens-bin

On Windows, download the installer from the releases page or use WinGet — check the exact package ID in the project’s README.

Connecting to the cluster with your kubeconfig

When it opens, Freelens reads your ~/.kube/config and lists the contexts it finds. Before clicking anything, it’s worth knowing which contexts exist and which one is active:

# list contexts (the active one is marked with *)
kubectl config get-contexts

# show the current context
kubectl config current-context

# switch to a local test cluster
kubectl config use-context kind-dev

To practice without risk, use a local cluster with kind, k3d, or minikube, as shown in lightweight local Kubernetes. For a command reference, see essential kubectl commands.

A read-only context

A graphical interface has exactly the power of the credentials it uses. If your kubeconfig is an admin one, a wrong click on “Delete” removes real resources. A good practice is to create read-only access for browsing and investigating:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: freelens-readonly
  namespace: tools
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: read-only
rules:
  - apiGroups: [""]
    resources: ["pods", "pods/log", "services", "configmaps", "events", "namespaces", "nodes", "persistentvolumeclaims"]
    verbs: ["get", "list", "watch"]
  - apiGroups: ["apps"]
    resources: ["deployments", "replicasets", "statefulsets", "daemonsets"]
    verbs: ["get", "list", "watch"]
  - apiGroups: ["batch"]
    resources: ["jobs", "cronjobs"]
    verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: freelens-readonly
subjects:
  - kind: ServiceAccount
    name: freelens-readonly
    namespace: tools
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: read-only

Notice that Secrets were left out on purpose. Next, generate a short-lived token and create a separate context:

kubectl create namespace tools
kubectl apply -f freelens-readonly.yaml

TOKEN=$(kubectl create token freelens-readonly -n tools --duration=8h)
kubectl config set-credentials freelens-readonly --token="$TOKEN"
kubectl config set-context my-cluster-readonly --cluster=my-cluster --user=freelens-readonly

Replace my-cluster with the cluster name in your kubeconfig. Another option is to bind the view ClusterRole, which ships with Kubernetes and also doesn’t grant access to Secrets.

Extensions

Freelens supports extensions, which add screens and integrations. Extensions that need to store tokens use the system’s secret store (such as GNOME Keyring/libsecret or KWallet on Linux). Treat extensions like any other dependency: install only those from trusted sources, because they run with access to your clusters.

Freelens and the alternatives

Tool Type Model Good for
Freelens Desktop app Open source (MIT), free Anyone who wants the Lens-family experience at no cost
Lens Desktop app Commercial (Mirantis) Teams that want support and commercial features
k9s Terminal UI Open source People who live in the terminal and like keyboard shortcuts
Headlamp Web or desktop UI Open source Anyone who wants a UI extensible through plugins
Kubernetes Dashboard In-cluster web UI Open source A basic view in the browser (check the project’s current status)
Rancher UI Rancher’s web UI Open source Managing many clusters in one place

If you manage many clusters with centralized policies, it’s worth reading what is Rancher.

GUI or kubectl?

A GUI helps when you need to explore: understand how resources relate, correlate events with logs, teach someone, or investigate an incident by looking at several pods at once.

kubectl is better when you need to repeat and automate: scripts, CI/CD pipelines, commands that go into a runbook, changes reviewed in Git. Changes made by clicking through YAML leave no history and can be overwritten by the next deploy or by your GitOps tool. Use Freelens to see; use Git and pipelines to change.

Security considerations

  • The app inherits the power of your kubeconfig. Prefer read-only contexts for day-to-day work.
  • Make production stand out. Give contexts clear names (prod-...) and check the active context before editing or deleting.
  • Shell and port-forward open a path into the cluster: use them with the same care you’d take in the terminal.
  • Protect your kubeconfig file: it contains tokens and certificates.
  • Keep the app up to date and review installed extensions.

Summary

  • Freelens is a free, open source (MIT) desktop IDE for Kubernetes
  • It emerged as a community continuation of OpenLens, from the Lens family
  • It uses your kubeconfig and doesn’t need anything installed in the cluster
  • It shows workloads, logs, shell, YAML, events, Helm, and port-forward
  • Read-only contexts reduce the risk of accidental clicks
  • Real changes still belong in Git and pipelines

A good graphical interface doesn’t replace kubectl — it helps you understand the cluster faster so you know which command to type.

Get updates on new posts and stay in the loop!