I keep a few Kubernetes contexts in my kubeconfig: a small public cluster, an RKE2 lab on virtual machines, and the usual kind and minikube that are stopped most of the time. What I wanted was simple: glance at the panel and know whether something is broken, and which context kubectl is pointing at before I type anything destructive.
GNOME has a handful of extensions for this (Kubectl Extension, Kube Config, Kube Node Monitor). On KDE Plasma I found one widget in the KDE Store that lists pods of a single cluster, and nothing for switching contexts. So I wrote Kubernetes Cluster Status, a Plasma 6 widget.
Demo data from a fake kubectl, so every state fits in one screenshot.
What it shows
- Every context in your kubeconfig, checked in parallel. Clusters with problems go to the top; unreachable ones (a stopped kind or minikube) are grey instead of red.
- Panel icon with a health badge, and the current context/namespace next to it. Contexts matching a regex (default
prod) are shown in red, so you notice before running something on production. - Nodes: NotReady, memory/disk/PID pressure, cordoned.
- Pods: CrashLoopBackOff, ImagePullBackOff, OOMKilled, Failed, Unknown, stuck in Pending or not ready longer than a grace period, with restart counts.
- Workloads: Deployments, StatefulSets and DaemonSets missing replicas for longer than the grace period, so a normal rollout does not trigger anything.
- Certificate expiry: the client certificate from kubeconfig and the API server certificate, a warning 30 days before.
- Recent Warning events, grouped by object and reason.
- Desktop notifications about new problems and recoveries.
- Actions: switch context and namespace, open k9s for a cluster, follow pod logs or
describein a terminal.
It is read-only. The only thing it writes is the current context/namespace in your kubeconfig, through kubectl config.
A few design decisions
kubectl does the talking. The widget calls kubectl ... -o json, so every authentication method in kubeconfig keeps working: certificates, tokens, OIDC, exec plugins such as kubelogin or gke-gcloud-auth-plugin. No client library, no credentials handled by the widget.
A small Python helper does the thinking. QML runs one script (standard library only) that queries all contexts in parallel and prints a compact JSON document. The analysis lives in plain functions, which made it easy to cover with unit tests (44 of them) instead of clicking through the UI.
Offline is not an error. A stopped local cluster is the normal state on a laptop, so unreachable contexts are grey by default. For clusters that must always be up there is a setting that turns "unreachable" into an error.
Notifications only for what is new. The helper keeps a small state file per widget instance and compares each run with the previous one. The first run only records a baseline, there is at most one notification per cluster per refresh, a flapping pod does not notify again for 30 minutes, and a short outage does not look like "all problems resolved" when the cluster comes back. Production contexts get critical urgency.
Certificates without dependencies. The client certificate comes from kubeconfig; the API server certificate is read from a TLS handshake (nothing is sent) and cached for six hours. Python's standard library cannot parse X.509, so there is a 30-line DER reader that walks to notAfter. That is all it needs.
Plasma has a shorter PATH than your shell. plasmashell usually does not see ~/.local/bin, Rancher Desktop's ~/.rd/bin or ~/.krew/bin, where kubectl, k9s and auth plugins often live. The helper adds the usual locations before calling anything.
Two lessons from testing on a real panel: after upgrading a widget that is already on a panel, plasmashell keeps the old QML in memory until you restart it (systemctl --user restart plasma-plasmashell); and the system tray forces square icons, so the context label is only shown when the widget sits directly on a panel.
Install
In Plasma: right-click the panel, Add Widgets..., Get New Widgets..., search for Kubernetes Cluster Status. Or from the KDE Store page, or from source:
git clone https://github.com/spidero/k8s-plasmoid.git cd k8s-plasmoid tools/install.sh Requirements: Plasma 6, kubectl, python3; optionally k9s and any terminal (Konsole by default). English and Polish UI.
What's next
I am thinking about KRunner integration (type k8s ctx prod or k8s logs checkout in the launcher), a list of running port-forwards, and maybe a few actions that change the cluster, always behind a confirmation and never on contexts marked as production.
If you run Plasma and Kubernetes, I would like to hear what you would want to see in a widget like this. Issues and ideas: github.com/spidero/k8s-plasmoid.
Kubernetes is a registered trademark of The Linux Foundation; this project is not affiliated with it.

