| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: ktop | Distribution: openSUSE Tumbleweed |
| Version: 0.7.9 | Vendor: openSUSE |
| Release: 1.1 | Build date: Fri Nov 27 06:51:13 2026 |
| Group: Unspecified | Build host: reproducible |
| Size: 81834185 | Source RPM: ktop-0.7.9-1.1.src.rpm |
| Packager: http://bugs.opensuse.org | |
| Url: https://github.com/vladimirvivien/ktop | |
| Summary: A top-like tool for your Kubernetes clusters | |
A top-like tool for your Kubernetes cluster. Following the tradition of Unix/Linux top tools, ktop is a tool that displays useful metrics information about nodes, pods, and other workload resources running in a Kubernetes cluster.
Apache-2.0
* Fri Nov 27 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.9:
ktop v0.7.9 introduces the [4] Storage and [5] Network TUI tabs,
live kubelet volume capacity and inode utilization telemetry,
EndpointSlice readiness health tracking, cAdvisor network packet
drop and error rates, matching --noui snapshot schema additions,
and Pod Detail storage/network enrichments (#178).
* Storage Telemetry & [4] Storage Tab (prom, metrics,
views/model, k8s, views/storage)
- Kubelet Volume Metrics Scraping (prom/types.go,
metrics/source.go, metrics/prom/prom_source.go): Added
kubelet_volume_stats_{capacity_bytes,used_bytes,available_bytes,inodes,inodes_used}
to DefaultMetricAllowlist and implemented
metrics.VolumeStatsProvider
(PromMetricsSource.GetAllVolumeStats) to aggregate per-PVC
byte usage, fill percentage, and inode utilization
percentages.
- Storage View Models & Controller
(views/model/storage_model.go, k8s/client_controller.go,
k8s/storage_controller.go): Added normalized PVCModel,
PVModel, StorageClassModel, StorageSummary, and
StorageSnapshot types alongside sorting helpers
(SortPVCModelsBy, SortPVModelsBy). Added startup RBAC
capability checks for StorageClass alongside existing
PersistentVolume and PersistentVolumeClaim informers,
exposing Controller.GetStorageSnapshot and
SetStorageRefreshFunc.
- [4] Storage TUI Page (views/storage/summary.go,
views/storage/page.go): Added a 1-line summary bar displaying
bound/pending PVCs, >=85% fill alert count, PV bound totals,
StorageClasses, used/capacity totals, and disk read/write
rates, paired with interactive sortable/filterable
PersistentVolumeClaims (FILL% and INODES% highlighted at
>=85% warning and >=95% error thresholds) and
PersistentVolumes tables, y clipboard copy, / row filtering,
global namespace filter sync, and Enter YAML inspection
modals.
* Network Telemetry & [5] Network Tab (prom, metrics,
views/model, k8s, views/network)
- cAdvisor Drop & Error Counters (prom/types.go,
prom/scraper.go, metrics/source.go,
metrics/prom/prom_source.go): Added
container_network_{receive,transmit}_{packets_dropped,errors}_total
to DefaultMetricAllowlist and updated
shouldKeepCAdvisorSeries to retain both node-root (id="/")
and pod-sandbox (container="POD") series for drop and error
counters. Implemented metrics.NetworkErrorsProvider
(GetClusterNetworkErrorRates and GetPodNetworkErrorRates).
- Network View Models & Controller
(views/model/network_model.go, k8s/client_controller.go,
k8s/network_controller.go): Added normalized ServiceModel
(with HasEndpointAlert()), IngressModel, NodeNetworkModel,
NetworkSummary, and NetworkSnapshot types with
SortServiceModelsBy and SortIngressModelsBy. Added RBAC-gated
informers for Service, EndpointSlice (discovery.k8s.io/v1),
and Ingress with deduplicated ready/total endpoint
aggregation in Controller.GetNetworkSnapshot.
- [5] Network TUI Page (views/network/summary.go,
views/network/page.go): Added a summary strip reporting total
Services, zero-endpoint alert counts, Ingresses, cluster
RX/TX throughput, and drop/error rates, paired with Services
(highlighting selector-backed services with zero ready
endpoints) and Ingresses tables, / row filtering, y copy, and
Enter YAML modals.
* Snapshots, Pod Detail, Navigation & Documentation
(internal/snapshot, collector, views/overview, views/pod,
application, config, cmd, ui, docs, hack/load-test)
- Headless Snapshot & Collector Support
(internal/snapshot/snapshot.go, internal/snapshot/builder.go,
collector/collector.go, collector/k8s_provider.go): Extended
Snapshot, BuildInput, and collector.Aggregate with Storage
(*StorageData) and Network (*NetworkData) sections, added
VolumeUsages, NetworkDropsPerSec, and NetworkErrorsPerSec on
PodData, and updated Snapshot.Clone() to deep-copy all nested
slices.
- Pod Detail Enrichments (views/overview/main_panel.go,
views/pod/detail.go): Joined mounted PVC usage stats and
per-pod network drop/error rates in buildPodDetailData,
rendering PVCs: fill percentages (colored at >=85% and >=95%)
and non-zero NetErr: counters inside the Pod Detail view.
- Navigation, CLI, Docs & Load Test Fixtures (application/,
config/, cmd/, ui/, docs/, hack/load-test/): Registered [4]
Storage (PageStorage) and [5] Network (PageNetwork), added
storage and network to --page / ui.default_page validation
and ui.StorageContext / ui.NetworkContext footers, updated
docs/cli.md, docs/noui.md, and docs/prometheus.md, and
expanded hack/load-test/ with live PVC/PV disk I/O and
Service/Ingress/HTTP traffic workloads.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully compatible with existing CLI
flags, kubectl ktop plugin invocation, ~/.ktop/config.yaml,
and existing --noui JSON/JSONL consumers; new storage,
network, and per-pod fields are additive with omitempty.
- RBAC Resilience: StorageClass, Service, EndpointSlice, and
Ingress informers probe cluster permissions on startup and
degrade without error if RBAC restricts listing optional
resources.
- Deprecations & Migration Actions: None.
* Thu Nov 26 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.8:
ktop v0.7.8 resolves unbounded memory growth and scrape-time heap
spikes in the built-in Prometheus metrics collector (#176), fixes
~/.ktop/config.yaml Prometheus configuration loading, and updates
Prometheus and CLI memory-tuning documentation.
* Prometheus Store & Ring Buffer Memory Fixes (prom)
- Lazy Ring Buffer Allocation (prom/ring_buffer.go): RingBuffer
now allocates backing storage lazily starting at 16 slots and
doubles up to its configured capacity rather than
pre-allocating MaxSamples (10,000 × 24 bytes = 240 KB)
immediately per series. Clear() zeroes backing elements to
avoid retaining references.
- Retention-Bounded Per-Series Capacity (prom/storage.go):
InMemoryStore bounds effective per-series ring buffer
capacity to what RetentionTime / ScrapeInterval (+
headroom) can produce, clamped to MaxSamples, preventing
long-running active series from growing to 10,000 slots
over extended uptime.
- Metadata & Stale Series Reclamation (prom/storage.go,
prom/controller.go):
- Removed the unbounded stringHandles map and delegated
InternString directly to unique.Make(s).Value() so
interned strings for deleted pods, containers, and cgroup
paths are eligible for garbage collection.
- Rebuilt labelNames and labelValues and compacted heavily
shrunk per-metric series maps during
cleanupExpiredSamples.
- Capped the periodic cleanup interval to at most 2 minutes
so expired series are reclaimed promptly.
- Reduced Query Allocations (prom/storage.go): Added
QueryLatestPerSeries for single-sample lookups and
batch-allocated MetricSample slices in QueryRangePerSeries.
* Streaming Scrape Filtering & cAdvisor Cardinality Reduction
(prom/scraper.go)
- Stream-Filtered Parsing: scrapeTarget streams responses via
req.Stream and filters Prometheus exposition lines against
DefaultMetricAllowlist before invoking expfmt.TextParser,
avoiding protobuf DTO allocation for non-allowlisted metric
families.
- Bounded Node Concurrency: scrapeAllTargets caps concurrent
node scrapes at 6 to bound peak heap usage on multi-node
clusters.
- cAdvisor Series Filtering: Drops unqueried cAdvisor series
during ingestion—including non-root/non-pod systemd and slice
cgroups (/system.slice/*, /kubepods.slice), pause containers
(container="POD"), per-core pod CPU series, pod-level network
series, and non-workload CFS/PSI series—while preserving all
queried node (id="/", including cgroups v1 per-core CPU
fallback) and pod/container series (including static-pod
container="" memory fallback).
* Refresh Allocation & Config Wiring Fixes (metrics/prom, k8s,
views/node, cmd, docs)
- Latest-Sample Memory Lookups (metrics/prom/prom_source.go):
GetAllPodMetrics and queryLatestSumFiltered use
QueryLatestPerSeries for working-set memory instead of
scanning 5-minute ranges on every 3-second pod refresh.
- Informer Read Without Deep Copy (k8s/pods_controller.go):
GetPodModels reads node allocatable resources directly from
the node informer lister without deep-copying full Node
objects.
- Reusable Node Info Header (views/node/detail.go): Reuses a
single tview.TextView in drawInfoHeader across refreshes.
- Config File Prometheus Settings (cmd/ktop.go): Applied
metrics.scrape_interval, metrics.retention,
metrics.max_samples, and metrics.components from
~/.ktop/config.yaml when not overridden by CLI flags.
- Documentation (docs/prometheus.md, docs/cli.md): Updated
default --prometheus-scrape-interval documentation to 5s and
added a Memory Tuning guide covering CLI flags,
~/.ktop/config.yaml, --ksm=off,
- -metrics-source=metrics-server, and GOMEMLIMIT.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing CLI flags, kubectl ktop plugin usage,
~/.ktop/config.yaml files, and --noui JSON/JSONL output.
- Deprecations & Retractions: None.
- Migration Actions: None required. Existing
~/.ktop/config.yaml files with max_samples: 10000 benefit
automatically from lazy ring-buffer allocation and
retention-bounded per-series caps.
* Tue Nov 24 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.7:
ktop v0.7.6 introduces a dedicated [3] Events tab for live,
cluster- and namespace-wide Kubernetes Event monitoring, adds a
floating Event Detail modal with full untruncated messages and
cross-tab object inspection, exposes normalized events in --noui
JSON/JSONL snapshots, and refines top-level tab navigation with <
/ > shortcuts.
Operators can switch directly to [3] Events (via key 3, < / >,
- -page=events, or ui.default_page: events), filter down to
Warnings (w), pause live updates during event storms (f) while
tracking incoming event deltas, open any event in a floating
modal to read full word-wrapped messages, inspect raw Event YAML
(v), or jump directly to the involved Pod, Node, Deployment,
StatefulSet, DaemonSet, or Job (g).
* Standalone [3] Events Page & Floating Event Detail Modal
(views/events, application, ui, config, cmd)
- Cluster-Wide Chronological Event Stream
- Problem / Context: Events were previously visible only
inside single-object detail views (Node Detail, Pod Detail,
and Workload Detail), providing no cluster- or
namespace-wide feed for cross-resource warnings such as
scheduling failures, image pull errors, mount failures, or
eviction cascades.
- Technical Implementation: Added the views/events package
(views/events/page.go, views/events/summary.go,
views/events/detail_modal.go) and registered [3] Events
(application.PageEvents) in application/tui/app.go. Added
"events" to config.ValidPages (config/config.go) and
updated --page in cmd/ktop.go. Added ui.EventsContext and
ui.EventDetailModalContext in ui/footer_context.go.
- Behavioral Notes:
- Single-line Summary bar displays Events, Warnings,
Normal, top firing Reason (prioritizing Warning reasons
when present), and active stream badges (ALL | WARNINGS
ONLY, LIVE | PAUSED (+N new)).
- Table columns: LAST SEEN | TYPE | REASON | OBJECT | NS |
COUNT | MESSAGE using ui.TableController for column
sorting, / substring filtering, and y clipboard copy.
- Key w toggles Warnings-only filtering; key f
freezes/resumes live table updates while tracking new
event arrivals in the summary bar. Both keys are
suppressed while editing / filter input.
- Syncs automatically with the global namespace filter
shared across Overview and Workloads.
- Floating Event Detail Modal & Cross-Tab Object Jump
- Problem / Context: Single-line event table rows truncate
long Kubernetes event messages and require manual
navigation to inspect the affected workload, pod, or node.
- Technical Implementation: Implemented events.DetailModal
(views/events/detail_modal.go) on ui.OverlayFrame, showing
normalized metadata (Type, Reason, Object, Count, First
Seen, Last Seen, Source, Event Name) above a scrollable,
word-wrapped full message view. Added
Application.JumpToObject(kind, namespace, name) and
application.IsInspectableObjectKind(kind) in
application/app_ctrl.go.
- Behavioral Notes:
- Pressing Enter on an event opens the floating Event
Detail modal (ESC / q closes and restores table focus; y
copies the full message; v opens raw Event YAML via
k8s.FormatObjectYAML).
- Pressing g jumps to the involved resource when
inspectable: Pod opens the shared floating Pod Inspector
modal over [3] Events, Node switches to [1] Overview and
opens Node Detail, and
Deployment/StatefulSet/DaemonSet/Job switches to [2]
Workloads and opens Workload Detail. Missing or
already-deleted objects display a warning toast instead
of opening an empty view.
* Normalized Event Model, Informer Controller & --noui Snapshot
(views/model, k8s, internal/snapshot, collector)
- Unified core/v1 and events.k8s.io/v1 Event Normalization
- Problem / Context: Controllers emitting events.k8s.io/v1
events populate Series.LastObservedTime, Series.Count,
EventTime, and ReportingController rather than legacy
LastTimestamp, Count, and Source.Component, causing
incomplete counts or misordered timelines.
- Technical Implementation: Added views/model/event_model.go
(EventModel, EventsSummary, EventsSnapshot, NewEventModel,
EventLastTimestamp, EventFirstTimestamp, EventCount,
EventSource, ComputeEventsSummary, SortEventModelsBy).
Added k8s/events_controller.go (SetEventsRefreshFunc,
GetEventsSnapshot, HasObject) backed by the existing shared
coreInformers.Events() informer with no additional API
watch or RBAC requirement. Updated sortEventsByTime in
k8s/client_funcs.go to use model.EventLastTimestamp.
- APIs / Signatures:
snap, err := ctrl.GetEventsSnapshot(ctx, k8s.AllNamespaces, k8s.DefaultTUIEventsLimit)
exists := ctrl.HasObject("Pod", "default", "api-0")
- events Field in internal/snapshot and Headless --noui Output
- Problem / Context: Headless --noui JSON/JSONL reports
previously omitted cluster event summaries and recent event
records.
- Technical Implementation: Added EventsData,
EventsSummaryData, and EventData (json:"events,omitempty")
to snapshot.Snapshot with deep-copy support in
Snapshot.Clone() (internal/snapshot/snapshot.go) and
conversion helpers (eventsDataFromModel, ToEventsSnapshot)
in internal/snapshot/builder.go. Populated
BuildInput.Events in collector/k8s_provider.go (bounded by
k8s.DefaultSnapshotEventsLimit) and propagated Events onto
collector.Aggregate (collector/collector.go).
- APIs / Signatures:
{
"events": {
"summary": {
"total": 12,
"warning_count": 2,
"normal_count": 10,
"top_reason": "BackOff",
"top_reason_count": 2
},
"items": []
}
}
* Tab Navigation & Help Overlay Refinement (application, ui, docs)
- < / > Page Navigation & Clearer Help Labels
- Problem / Context: Square-bracket page navigation ([ / ])
rendered ambiguously in the keyboard shortcuts help overlay
(1-3 / [ / ]).
- Technical Implementation: Replaced [ / ] global
page-switching bindings with < (PrevPage) and > (NextPage)
in application/app_ctrl.go. Updated ui/help_modal.go to
display separate Keys 1-3 and < or > lines, escaped key
labels via tview.Escape, and updated docs/guide.md,
docs/cli.md, and docs/noui.md.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI flags, kubectl ktop plugin usage,
~/.ktop/config.yaml configurations, and --noui JSON/JSONL
consumers (events is an additive omitempty field).
- Behavioral Changes: Sequential previous/next tab navigation
now uses < and > (Shift+, / Shift+.) instead of [ and ].
Direct numeric tab switching (1–3) is unchanged.
- Migration Actions: None required.
- Update to version 0.7.6:
ktop v0.7.7 adds auto-discovered kube-state-metrics (KSM)
governance telemetry, built-in Kubernetes Component SLIs
(/metrics/slis) and Kubelet probe counters (/metrics/probes),
lock-free joins into both the interactive TUI and headless --noui
JSON/JSONL snapshots, and an always-visible Overview Cluster
Summary layout for terminals of 45 rows or fewer.
Operators gain live visibility into control-plane and kubelet
healthcheck SLIs (incorporated into cluster health_score when
explicitly unhealthy), failing readiness/liveness/startup probes,
HPA scaling ceilings, PDB disruption budgets, ResourceQuota
utilization, CronJob schedules, pod disruption reasons, and DRA
ResourceClaim associations—with silent degradation when KSM or
SLI endpoints are absent or RBAC-restricted.
* Auto-Discovered kube-state-metrics (KSM) Enrichment
(metrics/ksm, config, cmd)
- Streaming Allowlist Parser & Service-Proxy Discovery
- Problem / Context: Cluster governance state—such as HPA
scaling limits, PDB zero-disruption budgets, ResourceQuota
saturation, CronJob schedule timestamps, pod disruption
reasons, and DRA ResourceClaim mappings—was not surfaced in
ktop without manually inspecting multiple API resources.
- Technical Implementation: Added metrics/ksm
(metrics/ksm/types.go, metrics/ksm/parser.go,
metrics/ksm/collector.go) with a line-by-line streaming
allowlist parser (ParseStream) that skips non-allowlisted
series before label parsing and extracts:
- kube_horizontalpodautoscaler_* (info, spec_min_replicas,
spec_max_replicas, status_current_replicas,
status_desired_replicas, status_condition)
- kube_poddisruptionbudget_status_* (current_healthy,
desired_healthy, expected_pods, pod_disruptions_allowed)
- kube_resourcequota (hard, used, computed UsedPct)
- kube_cronjob_* (spec_suspend, status_active,
status_last_schedule_time, next_schedule_time)
- kube_pod_status_disruption_reason and
kube_pod_resourceclaim_info
- Added config.NormalizeKSMMode (config/config.go),
metrics.ksm_mode / metrics.ksm_endpoint config keys, and
- -ksm (auto default, off) / --ksm-endpoint CLI flags
(cmd/ktop.go).
- APIs / Signatures:
[#] Default auto-discovery via API-server service proxy (degrades silently when absent)
ktop
[#] Disable KSM discovery
ktop --ksm=off
[#] Explicit service proxy or direct HTTP URL override
ktop --ksm-endpoint=monitoring/kube-state-metrics:8080
ktop --ksm-endpoint=http://127.0.0.1:8080/metrics
- Behavioral Notes: Auto-discovery scans kube-system,
monitoring, observability, prometheus, and the configured
namespace for matching kube-state-metrics services and
streams /metrics through the Kubernetes API server service
proxy with zero port-forwarding. Missing or RBAC-forbidden
services degrade silently without blocking startup.
* Component SLIs (/metrics/slis) & Kubelet Probes
(/metrics/probes) (metrics/sli, views/model, k8s)
- Control-Plane & Kubelet SLI Scraping with health_score
Integration
- Problem / Context: API reachability alone could not detect
internal component degradation (such as failing etcd
readiness checks or kubelet syncloop failures) or
containers experiencing repeated probe failures.
- Technical Implementation: Added metrics/sli
(metrics/sli/types.go, metrics/sli/parser.go,
metrics/sli/collector.go) scraping GET /metrics/slis on the
API server and nodes/{node}/proxy/metrics/slis +
nodes/{node}/proxy/metrics/probes across nodes with bounded
concurrency and atomic lock-free Latest() snapshots.
Updated model.CalculateHealthScore
(views/model/summary_model.go) and
Controller.BuildClusterSummary (k8s/summary_controller.go).
- Behavioral Notes:
- When /metrics/slis is reachable and explicitly reports
failing checks (kubernetes_healthcheck == 0),
CalculateHealthScore deducts 15 points per unhealthy
component (capped at 30).
- When /metrics/slis is unavailable or RBAC-forbidden, ktop
applies zero penalty to health_score.
- Kubelet prober_probe_total counters aggregate
per-container Readiness, Liveness, and Startup failure
counts per pod.
* Snapshot Join, Overview Layout & Detail Surfacing
(internal/snapshot, collector, views/overview, views/workloads,
views/pod, docs)
- Lock-Free Snapshot & --noui Schema Extensions
- Technical Implementation: Added optional Governance
* GovernanceData (json:"governance,omitempty") and SLIs
* SLIData (json:"slis,omitempty") to snapshot.Snapshot
(internal/snapshot/snapshot.go,
internal/snapshot/builder.go) and collector.Aggregate
(collector/collector.go), plus pod-level disruption_reason,
resource_claims, and failing_probes fields and SLI/KSM
rollup counts on SummaryData. Updated
K8sSnapshotProvider.WaitReady (collector/k8s_provider.go)
with a bounded best-effort initial KSM/SLI scrape so
single-shot ktop --noui captures them immediately.
- Overview Cluster Summary & Detail Panel Surfacing
- Problem / Context: On terminals with 45 rows or fewer,
Overview's Cluster Summary previously hid both the top
resource stats row and bottom enhanced stats row, leaving
only sparklines visible.
- Technical Implementation:
- Updated views/overview/summary_panel.go and
views/overview/main_panel.go to keep the full Cluster
Summary visible below 45 rows using compact 1-row
borderless stats lines (summaryHeight = 9 in Prometheus
mode / 8 in non-Prometheus mode, trimming 3 rows from the
flex Pods table).
- Added SLIs: OK|<N> fail, Probes: <N> fail, and KSM:
OK|<alerts> status badges to the bottom Cluster Summary
line under the sparklines.
- Surfaced HPA and PDB rows in Workload Detail
(views/workloads/detail.go, k8s/workloads_controller.go),
and failing Probes, Disrupt, and DRA Claims lines in Pod
Detail (views/pod/detail.go,
views/overview/main_panel.go).
- Documented --ksm, --ksm-endpoint, governance, and slis in
docs/cli.md and docs/noui.md.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI flags, kubectl ktop plugin usage,
~/.ktop/config.yaml configurations, and --noui JSON/JSONL
consumers (governance, slis, and new summary/pod fields are
additive omitempty fields).
- Deprecations & Retractions: None.
- Migration Actions: None required. Clusters without
kube-state-metrics or /metrics/slis access continue operating
with no configuration changes and zero health_score penalty.
* Mon Nov 23 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.5:
ktop v0.7.5 aligns Kubernetes client and metrics support with
Kubernetes v1.35–v1.37 (k8s.io/* v0.37.2), unifies workload state
into the core snapshot and headless --noui JSON/JSONL schema,
extracts shared UI-agnostic telemetry, log streaming, and YAML
helpers, and adds full-object Node YAML inspection parity.
Clusters running Kubernetes v1.37 now negotiate the GA
metrics.k8s.io/v1 API with automatic v1beta1 fallback, pods using
Pod-Level Resources (pod.Spec.Resources) or In-Place Pod Vertical
Scaling (AllocatedResources and
PodResizePending/PodResizeInProgress conditions) report accurate
effective budgets and resize states in both the TUI and --noui
output, and operators inspecting nodes in Node Detail can press v
to open a scrollable YAML modal.
* Kubernetes v1.35–v1.37 Client, Metrics, and Pod Resource
Support (k8s, metrics/k8s, views/model, views/pod,
internal/snapshot)
- k8s.io/* v0.37.2 Upgrade & metrics.k8s.io/v1 GA Negotiation
- Problem / Context: Previous releases pinned k8s.io/*
dependencies to v0.35.0 and queried only
metrics.k8s.io/v1beta1, missing the GA metrics.k8s.io/v1
API introduced in Kubernetes v1.37 and newer client-go
WatchList semantics.
- Technical Implementation: Upgraded k8s.io/api,
k8s.io/apimachinery, k8s.io/cli-runtime, k8s.io/client-go,
and k8s.io/metrics to v0.37.2 in go.mod. Added
Client.MetricsAPIVersion() in k8s/client.go to discover
metrics.k8s.io/v1 and fall back to metrics.k8s.io/v1beta1.
Updated MetricsServerSource in
metrics/k8s/metrics_server_source.go with MetricsV1()
queries (convertNodeMetricsV1, convertPodMetricsV1),
automatic NotFound downgrade to MetricsV1beta1(), and
accurate SourceInfo.Version reporting ("v1" or "v1beta1").
- APIs / Signatures:
apiVersion := client.MetricsAPIVersion() // "v1", "v1beta1", or ""
- Pod-Level Resources & In-Place Pod Vertical Scaling
- Problem / Context: Pod CPU and memory totals previously
summed only per-container Spec.Containers[*].Resources,
omitting pod-level budgets (pod.Spec.Resources) and
in-place vertical resize allocations
(ContainerStatus.AllocatedResources /
ContainerStatus.Resources), and leaving PodResizePending /
PodResizeInProgress conditions invisible.
- Technical Implementation: Added GetEffectiveResources() and
GetPodResizeStatus() in views/model/pod_model.go and
views/model/pod_detail_data.go, updated
GetPodContainerSummary() and GetConditions() health
mapping, surfaced ResizeStatus
(json:"resize_status,omitempty") on snapshot.PodData in
internal/snapshot/snapshot.go and
internal/snapshot/builder.go, and updated
views/pod/detail.go to display pod-level resource headers
((pod-level)) and active resize status (Pending, Deferred,
Infeasible, InProgress).
- Behavioral Notes:
- When pod.Spec.Resources defines a pod-level CPU or memory
request/limit, ktop displays that effective pod budget
instead of double-counting container specs.
- When a container has AllocatedResources or
Status.Resources from an in-place resize, active
requests/limits reflect the live allocated values rather
than stale spec values.
- PodResizePending with reason Infeasible or Deferred
surfaces as an unhealthy condition in Pod Detail and
populates resize_status in --noui JSON/JSONL snapshots.
* Unified Workloads Snapshot & Shared Runtime Helpers
(internal/snapshot, collector, internal/history, k8s, ui,
views/container)
- Workloads in internal/snapshot and --noui JSON/JSONL Output
- Problem / Context: Workload inventories (Deployments,
StatefulSets, DaemonSets, Jobs) were previously fetched
only inside the interactive Workloads view and were absent
from snapshot.Snapshot and --noui JSON/JSONL outputs.
- Technical Implementation: Added WorkloadsData,
DeploymentData, StatefulSetData, DaemonSetData, and JobData
to snapshot.Snapshot (json:"workloads,omitempty") with
deep-copy support in Snapshot.Clone()
(internal/snapshot/snapshot.go) and conversion helpers
(ToWorkloadsSnapshot) in internal/snapshot/builder.go.
Wired ctrl.GetWorkloadsSnapshot(ctx) in
collector/k8s_provider.go and added Workloads
* snapshot.WorkloadsData (json:"workloads,omitempty") to
collector.Aggregate (collector/collector.go).
- APIs / Signatures:
{
"workloads": {
"deployments": [{ "namespace": "default", "name": "api", "desired": 3, "ready": 3, "available": 3 }],
"statefulsets": [],
"daemonsets": [],
"jobs": []
}
}
- Renderer-Agnostic History Store, Log Streamer, and
Secret-Redacting YAML Formatter
- Problem / Context: Rolling telemetry buffers, container log
streaming cancellation, and YAML serialization with
metadata.managedFields stripping lived inside individual
TUI views, duplicating logic and coupling non-UI mechanics
to tview.
- Technical Implementation:
- Added internal/history.Store (internal/history/store.go),
a thread-safe bounded sample store fed by
Store.PushSnapshot(*snapshot.Snapshot) with windowed
slice extraction (WindowSlice) and top-N node chart
series extraction (Extract).
- Added k8s.LogStreamer (k8s/log_streamer.go), managing a
single cancellable container log stream via Start / Stop
callbacks; updated views/container/detail.go to delegate
stream lifecycle management to k8s.LogStreamer.
- Added k8s.FormatObjectYAML(obj any) (string, error)
(k8s/yaml.go), which strips metadata.managedFields and
redacts Secret.data and Secret.stringData values to
<redacted> without mutating source objects; updated
ui/yaml_modal.go and views/container/spec.go to delegate
to it.
- APIs / Signatures:
yamlText, err := k8s.FormatObjectYAML(obj)
store := history.NewStore(history.DefaultMaxSamples)
store.PushSnapshot(snap)
series := store.Extract(15*time.Minute, 5)
* Node Detail YAML Inspection & Reliability (views/node,
views/overview, ui, docs, tests)
- Node YAML Modal Parity
- Problem / Context: Workloads and Pod detail views supported
full-object YAML inspection via v, whereas Node Detail had
no YAML inspection action.
- Technical Implementation: Added
DetailPanel.SetOnShowYAML(func(*corev1.Node)) and [v] key
handling (suppressed while filtering the pods table) in
views/node/detail.go, wired centered ui.NewYAMLModal
presentation with focus restoration in
views/overview/main_panel.go, and added the [v] yaml hint
to NodeDetailContext in ui/footer_context.go.
- Headless E2E WatchList & Timing Hardening
- Problem / Context: client-go v0.37.2 SharedInformer
defaults to WatchList (sendInitialEvents=true) and expects
an initial-events BOOKMARK before marking caches synced;
additionally, parallel test runs could trigger watch
transitions before initial sync completed.
- Technical Implementation: Updated mock API server handlers
in tests/headless_e2e_test.go to emit ADDED + BOOKMARK
(k8s.io/initial-events-end: "true") on
sendInitialEvents=true requests and synchronized
watch-transition test setup on initial BOOKMARK completion.
Updated docs/noui.md with the new workloads and pod
resize_status schema fields.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI flags, kubectl ktop plugin usage,
~/.ktop/config.yaml configurations, and --noui JSON/JSONL
consumers (workloads and resize_status are additive omitempty
fields).
- Deprecations & Retractions: None.
- Migration Actions: None required. Builds from source require
Go 1.27.0+ per go.mod (k8s.io/* v0.37.2).
- Update to version 0.7.4:
ktop v0.7.4 refines the Workloads experience and introduces a
shared floating Pod / Container / YAML Inspector modal,
streamlining multi-page navigation and aligning table telemetry
and colors across Overview and Workloads.
Workloads tables now display aggregated live CPU and MEM usage
directly across Deployments, StatefulSets, and DaemonSets,
workload detail subpages provide richer rollout metadata with
full-object YAML inspection, and drilling into pods or container
logs from Overview, Node Detail, or Workload Detail opens in a
single transparent-margin modal frame that keeps the cluster
header, tabs, parent edges, and footer visible around it.
* Shared Floating Pod / Container / YAML Inspector Modal (ui,
views/overview, views/pod, views/container, application)
- Transparent-Margin Overlay Frame & Single-Modal Leaf
Inspection
- Problem / Context: Opening Pod Detail, Container Logs, and
Container Spec from Overview, Node Detail, and Workload
Detail previously replaced the entire viewport across 4–5
stack levels, hiding parent context and allowing circular
Pod -> Node -> Pod navigation loops.
- Technical Implementation: Added ui.OverlayFrame in
ui/overlay.go to position floating modals within outer
margins without clearing underlying cells, keeping the top
Cluster Header, TabFrame tabs and breadcrumbs, parent page
edges, and bottom Context Footer visible. Hosted
views/pod.DetailPanel, views/container.DetailPanel, and
inline YAML views inside a single modal-backed *tview.Pages
(pod-inspector) in views/overview/main_panel.go, tracked
separately from the underlying page state in
views/overview/view_state.go. Updated
Application.NavigateToPodDetail and
Application.NavigateToContainerLogs in
application/app_ctrl.go to delegate to the shared modal
without pushing onto NavigationStack, capping full-screen
drill-down depth at 1 subpage (Node Detail or <Kind>
Detail).
- APIs / Signatures:
overlay := ui.NewOverlayFrame(inspectorPages, 4, 3, 3, 3)
box, textView := ui.NewYAMLBox(ui.YAMLModalConfig{
Title: "Pod YAML: default/api-0",
Content: yamlText,
OnClose: onClose,
})
- Behavioral Notes:
- Pressing Enter on any pod row in Overview, Node Detail,
or Workload Detail opens the floating Pod Inspector modal
(v switches inline to Pod YAML, Enter on a container
switches inline to Container Logs, s on Container Detail
switches inline to Container Spec YAML).
- ESC unwinds cleanly inside the modal (YAML -> Container
Logs -> Pod Detail -> Close Modal) and restores focus and
footer context directly to the active parent table behind
it (views/container/detail.go, views/node/detail.go,
application/app_ctrl.go).
- Added Controller.GetPod fallback in
views/overview/main_panel.go and nil-safe metrics
handling in model.NewPodModel (views/model/pod_model.go)
so opening a pod from --page=workloads succeeds even
before Overview's pod cache populates.
* Workloads Table Telemetry, Layout & Color Alignment
(views/workloads, views/model, k8s, ui)
- Live Aggregated CPU & MEM Columns and Compact Single-Line
Summary
- Problem / Context: Workloads tables previously showed
duplicate replica columns (UP, AVAIL, DESIRED, CURRENT)
alongside a request-only EFF column that rendered n/a
whenever pods omitted resources.requests, and used a
two-row summary header duplicating the top-bar namespace
display.
- Technical Implementation: Added model.WorkloadUsage and
model.ComputePodsUsage in views/model/workload_model.go
(populated in k8s/workloads_controller.go) to sum live CPU
and memory usage across each workload's active owned pods,
with CPU (c) and MEM (e) sort support. Standardized
Deployments, StatefulSets, and DaemonSets onto a unified
7-column layout (NS | NAME | READY | CPU | MEM | AGE |
STATUS) with ready/desired ratios in READY, and collapsed
views/workloads/summary.go into a single-line Summary bar
without Namespace.
- Behavioral Notes: Aligned Workloads colors with Overview in
views/workloads/summary.go, views/workloads/page.go, and
ui/theme.go: Summary labels and separators use DataPrimary,
live CPU and MEM values use DataSecondary on healthy rows,
READY and AGE inherit rowColor, and Scaled 0 maps to
StatusMuted so scaled-to-zero deployments recede visually
as idle.
* Redesigned Workload Detail Subpage & Full-Object YAML Modal
(views/workloads, k8s, ui)
- Kind-Specific Detail Subpages & Scrollable ui.YAMLModal
- Problem / Context: Workload detail subpages used a generic
Workload Detail heading, crowded replica counts into a
single parenthetical string, devoted 4 vertical rows to
request-ratio sparklines, and omitted key rollout fields
(container images, revision, active ReplicaSet, strategy
parameters, and full YAML).
- Technical Implementation: Added ui.YAMLModal,
ui.FormatObjectYAML (marshaling typed Kubernetes objects
with apiVersion/kind preserved and metadata.managedFields
stripped), and shared ui.HighlightYAML in ui/yaml_modal.go
(reused by views/container/spec.go). Enriched
model.WorkloadDetailData (views/model/workload_model.go,
k8s/workloads_controller.go) and redesigned
views/workloads/detail.go:
- Kind-specific section headers (Deployments > <name>,
StatefulSets > <name>, DaemonSets > <name>, Jobs >
<name>) and detail panel titles (Deployment Detail,
StatefulSet Detail, DaemonSet Detail, Job Detail).
- Single-line Info bar with separate replica/job counters
(Status, Desired, Ready, Updated, Available, Unavailable,
PAUSED, Age).
- Removed detail sparklines and unused aggregatePodHistory
queries, replacing them with live used / req / lim CPU
and memory totals, rollout strategy details, revision and
active ReplicaSet, container images, generation lag
highlights, and unhealthy condition messages.
- Made <Kind> Detail active on entry (Tab cycles Detail ->
Owned Pods -> Events) so pressing Enter opens the full
object YAML in ui.YAMLModal (↑↓/j/k, PgUp/PgDn, g/G, y
copy, Esc/q close). Replaced the redundant NAMESPACE
column in Owned Pods with NODE.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI flags, kubectl ktop plugin usage, --noui
JSON/JSONL output schemas, and ~/.ktop/config.yaml
configurations.
- Deprecations & Retractions: Removed the circular n (Pod ->
Node) jump inside the Pod Inspector modal to keep modal
navigation bounded.
- Migration Actions: None required.
- Update to version 0.7.3:
ktop v0.7.3 introduces the Workloads top-level page ([2]
Workloads), providing real-time visibility into Deployments,
StatefulSets, DaemonSets, and Jobs alongside a dedicated Workload
Detail drill-down view, workload resource efficiency scoring
(EFF), and --page=workloads startup support.
This release also upgrades the multi-page navigation chrome with
a bordered ui.TabFrame container that renders zero-gap themed tab
pills and right-aligned drill-down breadcrumbs along its top
border, refines tab color contrast across Dark, Light, ANSI, and
Monochrome themes, and streamlines Tab focus cycling on both
Overview and Workloads pages.
* Workloads Informer Controller & Efficiency View Models (k8s,
views/model)
- Dedicated Workload Informer Snapshot & Pod Ownership
Resolution
- Problem / Context: ktop previously surfaced cluster state
through Nodes and Pods without aggregating controller-level
workload health, replica status, job completion state, or
pod-to-workload ownership chains.
- Technical Implementation: Added k8s/workloads_controller.go
and views/model/workload_model.go to watch apps/v1
(Deployment, StatefulSet, DaemonSet, ReplicaSet) and
batch/v1 (Job) objects through Kubernetes shared informers,
resolve owned pods via OwnerReferences (including
Deployment -> ReplicaSet -> Pod indirection), and build
immutable model.WorkloadsSnapshot updates. Added
ClientController.SetWorkloadsRefreshFunc and deferred
workload startup handling in k8s/client_controller.go so
informer callbacks register reliably regardless of page
initialization order. Extracted shared GetEventsForObject
and workload object getters in k8s/client_funcs.go.
- APIs / Signatures:
snap, err := client.Controller().GetWorkloadsSnapshot(ctx)
detail, err := client.Controller().GetWorkloadDetail(ctx, kind, namespace, name)
- Behavioral Notes: Workloads snapshots honor the active
cluster namespace filter (--namespace or header / filter),
expose per-kind summary counts (model.WorkloadSummary), and
compute workload health statuses (Healthy, Progressing,
Degraded, Scaled to 0, Complete, Running, Failed).
- Resource Request Efficiency Scoring (EFF)
- Problem / Context: Operators inspecting controller fleets
need a quick indicator of over-provisioned or unrequested
CPU/memory allocations across owned pods.
- Technical Implementation: Implemented
model.ComputeWorkloadEfficiency in
views/model/workload_model.go and ui.FormatEfficiencyCell
in ui/format.go to compare live pod CPU/memory usage
against pod requests and classify workloads into efficiency
bands (Optimal, Underutilized, Over-provisioned, No
Requests, No Metrics).
- Behavioral Notes: Efficiency cells degrade gracefully when
metrics are unavailable or pods omit resource requests, and
use semantic theme colors (or plain text labels in
monochrome / $NO_COLOR mode).
* Workloads Page & Workload Detail View (views/workloads,
application, ui)
- 2-Column Workloads Dashboard ([2] Workloads)
- Problem / Context: Monitoring four workload controller
types simultaneously requires balanced screen density
without horizontal column overflow.
- Technical Implementation: Added views/workloads/page.go,
views/workloads/summary.go, and views/workloads/table.go
implementing the [2] Workloads page registered in
application/tui/app.go. The layout pairs a compact Workload
Summary header with an equal 2-column × 2-row tview.Grid
(Deployments and DaemonSets on the left; StatefulSets and
Jobs on the right), column sorting (</> or header hotkeys),
inline filtering (/), and clipboard copy (y).
- Behavioral Notes: NAME columns expand to use available
width while compact metadata columns (NS, READY, UP, AVAIL,
AGE, EFF, STATUS) stay tightly sized.
- Workload Detail Drill-Down & Cross-View Navigation
- Problem / Context: Investigating an unhealthy or
inefficient Deployment, StatefulSet, DaemonSet, or Job
requires inspecting controller metadata, live resource
sparklines, recent Kubernetes events, and owned pods in one
view.
- Technical Implementation: Added views/workloads/detail.go
and application.PageWorkloadDetail routing in
application/navigation.go, application/page_registry.go,
and application/app_ctrl.go. Selecting any workload row
(Enter) opens Workload Detail with controller metadata,
labels/annotations, live CPU/Memory/Network/Disk
sparklines, owned pods, and workload-scoped Kubernetes
events. Pressing Enter on an owned pod drills further into
Pod Detail and Container Logs with full breadcrumb tracking
(Workloads › deploy/<ns>/<name> › pod/<ns>/<pod>) and ESC
stack unwinding.
- Behavioral Notes: Added ui.WorkloadsContext and
ui.WorkloadDetailContext in ui/footer_context.go, workload
status styling in ui/theme.go, and Workloads keybindings in
ui/help_modal.go.
* Bordered Tab Frame, Tab Theme Contrast & Navigation Polish (ui,
application, config)
- Bordered ui.TabFrame Container with Top-Border Tabs and
Breadcrumbs
- Problem / Context: Top-level page tabs previously floated
on a separate borderless row above the page panels,
leaving no visual frame tying active page content to its
selected tab.
- Technical Implementation: Added ui.TabFrame in
ui/tab_bar.go wrapping p.pages in application/app_ui.go
inside a single-line bordered box (Palette.BorderNormal).
Contiguous zero-gap tab pills render directly along the
top border line on the left, while drill-down breadcrumbs
render right-aligned on the same border row. Updated
ExtraLarge panel height calculation in
views/overview/main_panel.go for the frame borders.
- APIs / Signatures:
frame := ui.NewTabFrame(pages)
frame.SetTabs([]ui.TabItem{
{ID: "overview", Title: "Overview", Key: '1'},
{ID: "workloads", Title: "Workloads", Key: '2'},
})
frame.SetActive(1)
frame.SetBreadcrumb("Workloads › deploy/default/api")
- Behavioral Notes: TabFrame renders its outer frame with
single-line borders while inner tables retain focus
borders, and delegates Focus, Blur, HasFocus,
InputHandler, and MouseHandler directly to the active
page.
- Dedicated Active/Inactive Tab Palette Tokens & Streamlined
Tab Cycling
- Technical Implementation: Added TabActiveFg, TabActiveBg,
TabInactiveFg, and TabInactiveBg tokens to
ui/theme/palette.go and tuned Dark, Light, ANSI, and
Monochrome presets in ui/theme/builtins.go for clear
active/inactive separation and readability. Removed
non-interactive Summary boxes (Cluster Summary and Workload
Summary) from the Tab focus cycle in
views/overview/main_panel.go, views/workloads/page.go, and
application/tui/app.go so Tab cycles directly across
interactive panels (Header -> Nodes -> Pods on Overview;
Header -> Deployments -> StatefulSets -> DaemonSets -> Jobs
on Workloads).
- Startup Page Configuration (--page=workloads) & Diverse Load
Test Harness
- Technical Implementation: Added workloads to
config.ValidPages (config/config.go) and updated CLI flag
help (cmd/ktop.go), allowing startup directly on Workloads
via ktop --page=workloads or ui.default_page: workloads in
~/.ktop/config.yaml. Expanded
hack/load-test/deploy-load.sh,
hack/load-test/cleanup-load.sh, and
hack/load-test/README.md to provision diverse Deployments
(including over-provisioned and scaled-to-zero examples),
StatefulSets, DaemonSets, Jobs, and CronJobs for local
verification.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI invocations, kubectl ktop plugin usage,
- -noui JSON/JSONL output schemas, and ~/.ktop/config.yaml
configurations. Existing installations without
ui.default_page continue opening on overview.
- Deprecations & Retractions: None.
- Migration Actions: None required.
* Wed Nov 18 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.2:
ktop v0.7.2 introduces the multi-page terminal UI navigation
architecture, adding a theme-aware top-level tab bar (ui.TabBar)
with drill-down breadcrumbs, a declarative page registry
(application.PageDescriptor and application.PageSession),
isolated per-page navigation stacks
(application.NavigationStack), keyboard page-switching shortcuts
(1–9, [ and ]), and startup page configuration via --page and
ui.default_page in ~/.ktop/config.yaml.
Top-level pages maintain independent focus positions and
drill-down histories across tab transitions while sharing cluster
header namespace filtering, modal overlays, and Kubernetes
informer lifecycles.
* Top-Level Tab Bar & Breadcrumb Navigation (ui)
- Theme-Aware Tab Bar and Right-Aligned Drill-Down Breadcrumbs
- Problem / Context: ktop previously rendered a single
unindexed page container without visible top-level tab
indicators or hierarchical location trails when navigating
across nested Node, Pod, and Container detail views.
- Implementation Details: Added ui.TabBar and ui.TabItem in
ui/tab_bar.go backed by a 1-row borderless tview.Table
mounted directly beneath the cluster header in
application/app_ui.go (removing the unmounted legacy
page-button footer table and updating panel height
calculations in views/overview/main_panel.go). Added
application.FormatBreadcrumb in application/navigation.go
to render active drill-down paths (<Page> › node/<name> ›
pod/<ns>/<pod> › logs/<container>).
- APIs / Signatures:
tb := ui.NewTabBar()
tb.SetTabs([]ui.TabItem{
{ID: "overview", Title: "Overview", Key: '1'},
})
tb.SetActive(0)
tb.SetBreadcrumb("Overview › node/worker-1 › pod/default/api-0")
- Impact & Behavioral Notes: Active tabs render with
Palette.HeaderFg on Palette.HeaderBg (and tcell.AttrReverse
| tcell.AttrBold with tcell.ColorDefault in monochrome and
$NO_COLOR environments); inactive tabs and breadcrumbs
render with Palette.CanvasFg on Palette.CanvasBg.
Root-level pages omit redundant breadcrumb text and display
trail segments only when drilled into detail views. Updated
ui.OverviewContext, ui.PageContext (ui/footer_context.go),
and ui.HelpModal (ui/help_modal.go) to display dynamic
[1-N] page and [ / ] shortcuts.
* Multi-Page Registry, Per-Page Navigation Stacks & Input Routing
(application, k8s, views)
- Declarative Page Registry and Isolated Per-Page Sessions
- Problem / Context: Focus management, Tab/Shift+Tab panel
cycling, ESC back-navigation, modal focus restoration, and
active detail lookups in application/app_ctrl.go previously
indexed app.pages[0] directly and shared a single
NavigationStack rooted at PageOverview.
- Implementation Details: Added application.PageDescriptor
and application.PageSession in application/page_registry.go
(RegisterPage, PageCount, ActivePageIndex, ActivePageID,
FindPageIndex, SetInitialPage, SwitchToPageIndex,
SwitchToPage, NextPage, PrevPage) and
application.NewNavigationStackWithRoot in
application/navigation.go. Refactored
application/app_ctrl.go to resolve focus, EscapablePanel
state, HelpModal context, and ESC unwind transitions
against the active PageSession, added
Application.SetDetailResetCallback and
Application.AddNamespaceFilterListener, added
DetailPanel.IsFilterEditing in views/container/detail.go,
and guarded Controller.Start in k8s/client_controller.go
for idempotent informer startup across multiple registered
pages.
- APIs / Signatures:
app.RegisterPage(application.PageDescriptor{
ID: "overview",
Title: "Overview",
Key: '1',
RootType: application.PageOverview,
Panel: overviewPage,
ChildNames: []string{"summary", "nodes", "pods"},
})
- Impact & Behavioral Notes: Pressing 1–9 switches directly
to the corresponding registered page, and [ / ] cycles to
the previous or next page with wrap-around. Switching away
from a page preserves both its focused panel index and any
open detail stack (Node Detail, Pod Detail, Container
Logs), restoring them when switching back. When any filter
input is active (cluster header namespace filter, table /
filter, or container log filter), digit and bracket keys
pass directly into the text input without triggering page
switches.
* CLI & Configuration (cmd, config, application/tui)
- Startup Page Flag (--page) and Persistent Default
(ui.default_page)
- Problem / Context: Operators had no CLI flag or
configuration key to select or validate the initial
top-level page at startup.
- Implementation Details: Added --page in cmd/ktop.go,
InitialPage on tui.Options in application/tui/app.go, and
UIConfig.DefaultPage (ui.default_page), config.ValidPages,
and config.NormalizePage in config/config.go.
- APIs / Signatures:
[#] Launch ktop on a specific top-level page
ktop --page=overview
[#] ~/.ktop/config.yaml
ui:
theme: auto
color_mode: auto
default_page: overview
- Impact & Behavioral Notes: --page defaults to overview and
overrides ui.default_page in ~/.ktop/config.yaml for the
current session. Unrecognized --page or ui.default_page
values fail fast prior to cluster connection with exit code
2 (ExitInvalidFlags).
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing ktop CLI invocations, kubectl ktop plugin usage,
- -noui JSON/JSONL schemas, and ~/.ktop/config.yaml files.
Existing configurations without ui.default_page default
automatically to overview.
- Deprecations & Retractions: None.
- Migration Actions: None required.
* Mon Nov 16 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.7.1:
ktop v0.7.1 introduces scriptable non-interactive (--noui)
execution for CI/CD gates, cron jobs, and telemetry pipelines,
incorporates OOMKilled and CrashLoopBackOff container states into
the composite 0–100 cluster health score alongside window-level
health_score_stats, and defines structured operational exit codes
(0–5) and log sink routing (--log).
Passing --noui bypasses terminal UI allocation, synchronizes
Kubernetes informers and initial Prometheus scrape cycles, and
writes indented single-document JSON (-o json) or line-delimited
streaming snapshots (-o jsonl) to stdout while keeping readiness
diagnostics on stderr (or suppressed with --quiet) and structured
logs in ~/.ktop/ktop.log.
* Non-Interactive (--noui) Collection & Output Pipeline
- Headless Application Runner and Synchronous Snapshot
Collector
- Problem / Context: ktop previously required an interactive
TTY (tview/tcell) to observe cluster state and metrics,
preventing automated scripts, CI deployment gates, and
headless jobs from capturing structured cluster snapshots.
- Implementation Details: Added package application/headless
(headless.NewRunner, headless.App, headless.Options in
application/headless/app.go) implementing
application.Runner without terminal screen dependencies,
backed by collector.Collector and
collector.K8sSnapshotProvider (collector/collector.go,
collector/k8s_provider.go). Added synchronous informer
startup (Controller.StartInformers in
k8s/client_controller.go), exported
Controller.BuildClusterSummary (k8s/summary_controller.go),
and added scrape-cycle synchronization
(Controller.WaitForCycles in prom/controller.go and
PromMetricsSource.WaitForWarmup in
metrics/prom/prom_source.go) so Prometheus counter rates
warm up across two completed scrape cycles before sampling.
- Impact & Behavioral Notes: Single-shot runs (-d 0s,
default) wait for core informer cache sync and metrics
warmup, emit one collector.Aggregate document (metadata,
cluster, summary, health_score_stats, nodes, pods), and
exit. Timed runs (-d > 0) sample every -i (--interval,
default 5s), include the ordered samples slice in -o json,
and handle SIGINT/SIGTERM cleanly by flushing all samples
collected prior to cancellation. When
- -prometheus-scrape-interval is not explicitly set in
- -noui mode, single-shot runs tune the internal scrape
cadence to 1500ms (or -i when smaller) so rate metrics warm
up promptly.
- JSON and Streaming JSONL Output Formatters
- Problem / Context: Automation consumers need both complete
end-of-window reports for post-deployment assertions and
real-time line-delimited streams for continuous pipelines.
- Implementation Details: Added package output
(output.Formatter, output.NewFormatter,
output.JSONFormatter, output.JSONLFormatter in
output/formatter.go, output/json.go, output/jsonl.go).
JSONFormatter encodes a single indented collector.Aggregate
document upon completion, while JSONLFormatter encodes one
minified snapshot.Snapshot line per interval tick with HTML
escaping disabled and immediate buffer flushing.
- Impact & Behavioral Notes: stdout receives strictly valid
JSON or JSONL with canonical numeric units (millis for CPU,
bytes for memory and storage, and 0.0–100.0 percentages for
PSI stall and CFS throttling).
* Cluster Health Score & Window Aggregations
- OOMKilled and CrashLoopBackOff Detection and HealthScoreStats
- Problem / Context: Pods in Running or Pending phase with
containers restarting due to OOMKilled or CrashLoopBackOff
were not reflected in the cluster summary's pod-failure
health score deduction, and multi-sample runs lacked
window-level health score summaries.
- Implementation Details: Added CrashLoopPods
(json:"crashloop_pods") to model.ClusterSummary
(views/model/summary_model.go) and snapshot.SummaryData
(internal/snapshot/snapshot.go,
internal/snapshot/builder.go). Updated
Controller.BuildClusterSummary (k8s/summary_controller.go)
to inspect both InitContainerStatuses and ContainerStatuses
for OOMKilled (State.Terminated and
LastTerminationState.Terminated) and CrashLoopBackOff
(State.Waiting), and updated model.CalculateHealthScore to
apply the -15 pod-health deduction when FailedPods > 0 ||
OOMKillCount > 0 || CrashLoopPods > 0. Added
collector.HealthScoreStats (min, max, avg, latest) to
collector.Aggregate.
- APIs / Signatures:
[#] Capture a single JSON snapshot
ktop --noui | jq .
[#] Gate a CI pipeline on point-in-time health_score or OOM/crashloop counts
ktop --noui --quiet | jq -e '.summary.health_score >= 80 and .summary.oom_kill_count == 0 and .summary.crashloop_pods == 0'
[#] Gate on sustained window statistics over a 30s soak period
ktop --noui -d 30s -i 5s --quiet | jq -e '.health_score_stats.min >= 70 and .health_score_stats.avg >= 85'
[#] Stream minified JSONL snapshots every 5s
ktop --noui -d 5m -i 5s -o jsonl --quiet
- Impact & Behavioral Notes: Both the interactive TUI Cluster
Summary header and --noui JSON/JSONL snapshots reflect
OOMKilled and CrashLoopBackOff containers in health_score,
while downstream scripts express custom pass/fail
thresholds against summary.health_score and
health_score_stats.
* CLI Flags, Logging Isolation & Operational Exit Codes
- Headless Flags, --log Destination Control, and Exit Codes 0–5
- Problem / Context: Automated callers need deterministic
process exit codes to separate invalid flags from cluster
connectivity, missing metrics backends, and readiness
timeouts, as well as explicit control over stderr progress
output and structured log destinations.
- Implementation Details: Added --noui, -d/--duration,
- i/--interval, -o/--output, --quiet, and --log (file or
stderr) in cmd/ktop.go (NewKtopCmd), along with
logging.Validate (internal/logging/logger.go). Added
cmd/exitcode.go defining ExitOK (0), ExitGeneralError (1),
ExitInvalidFlags (2), ExitK8sConnectError (3),
ExitMetricsUnavailable (4), and ExitCollectionTimeout (5),
mapped via cmd.ExitError, cmd.WrapExitError, and
cmd.ExitCode in main.go.
- Impact & Behavioral Notes: Invalid CLI flags, negative
- -duration, non-positive --interval, unsupported --output
formats, or unknown --log destinations fail before cluster
connection with exit code 2. API connection or RBAC
preflight failures return 3; unavailable explicitly
requested metrics sources (--metrics-source=prometheus or
- -metrics-source=metrics-server) return 4; informer sync or
warmup timeouts (--request-timeout) return 5.
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing interactive ktop CLI invocations, kubectl ktop
plugin usage, kubeconfig setups, and ~/.ktop/config.yaml
files. Running ktop without --noui launches the interactive
terminal UI unchanged.
- Deprecations & Retractions: None.
- Migration Actions: None required. Note that CLI flag
validation errors now exit with status code 2
(ExitInvalidFlags) rather than 1, and clusters with active
OOMKilled or CrashLoopBackOff containers now include the -15
deduction in health_score.
- Update to version 0.7.0:
ktop v0.7.0 introduces an adaptive terminal theme engine with
automatic background luminance and color-depth detection,
refactors cluster state delivery around an immutable Snapshot
pipeline and application.Runner boundary, and aligns Prometheus
CPU rate and history calculations across overview and detail
views.
Operators can run ktop across dark, light, 16-color ANSI, and
$NO_COLOR / monochrome terminals without manual configuration, or
set explicit --theme and --color-mode preferences on the command
line and in ~/.ktop/config.yaml. Under the hood, overview tables
and drill-down detail views render from lock-free point-in-time
Snapshot projections, while the Prometheus metrics pipeline
preserves upstream cAdvisor sample timestamps and series
semantics to eliminate rate drift and transient 0m CPU drops.
* Adaptive Terminal Themes & UI Styling
- Semantic Palette Engine and Built-in Themes
- Problem / Context: UI widgets, tables, sparklines,
saturation gauges, and modal dialogs previously relied on
hardcoded colors tuned only for dark TrueColor terminals,
causing low-contrast text on light backgrounds,
inconsistent highlights on 16-color profiles, and residual
color escapes in monochrome sessions.
- Implementation Details: Added package ui/theme
(ui/theme/palette.go, ui/theme/builtins.go,
ui/theme/format.go) defining a 33-token semantic Palette
(CanvasBg, HeaderBg, RowSelectedBg, StatusOK..StatusError,
GaugeLow..GaugeHigh, SparklineNormal,
ToastInfoBg..ToastErrorBg, etc.) with four built-in themes:
DarkPalette, LightPalette, ANSIPalette, and
MonochromePalette. Migrated overview panels,
node/pod/container detail panels, sparklines, bargraphs,
filter inputs, help/column modals, and *ui.ToastModal
notifications (ui/toast.go) to resolve colors dynamically
from the active palette while maintaining WCAG AA contrast
(>= 4.5:1).
- Impact & Behavioral Notes: Tables, headers, summary
bargraphs, resource gauges, and interactive toast modals
(Retry / Quit actions and severity borders) render legibly
across all four built-in palettes. When monochrome (or
- -color-mode=none) is active, ktop emits zero ANSI color
sequences and distinguishes focus, headers, selection, and
error states using AttrBold, AttrUnderline, AttrReverse,
and ! prefixes (ui.ErrorMarkup).
- Automatic Terminal Background Detection and 4-Tier Color
Quantization
- Problem / Context: Terminal emulators vary in background
luminance and color capability across local consoles, tmux,
SSH sessions, TERM=dumb, and $NO_COLOR environments.
- Implementation Details: Implemented theme.Resolve
(ui/theme/detect.go) with deterministic auto-detection
precedence: explicit theme override -> $NO_COLOR or
TERM=dumb (monochrome) -> $COLORFGBG background index
parsing (ParseCOLORFGBG) -> non-blocking 50ms OSC 11
background query (ProbeTerminalLightBg /
ParseOSC11Luminance using ITU-R BT.709 relative luminance)
- > dark default. Implemented ResolveColor
(ui/theme/palette.go) to quantize 24-bit RGB palette tokens
to the 6x6x6 xterm-256 cube and 24-step grayscale ramp
(ColorMode256), nearest 16-color ANSI (ColorMode16), or
tcell.ColorDefault (ColorModeNone).
- Impact & Behavioral Notes: --theme=auto selects an
appropriate light, dark, or monochrome theme at startup
without blocking non-interactive streams or character
devices that do not support read deadlines, and
automatically maps palette tokens to the terminal's
supported color tier.
* CLI & Persistent Configuration
- --theme and --color-mode Flags and ~/.ktop/config.yaml Persistence
- Problem / Context: Users needed session-scoped CLI
overrides and persistent user defaults for theme selection
and terminal color-depth degradation.
- Implementation Details: Added --theme and --color-mode
flags in cmd/ktop.go (NewKtopCmd), validated by
config.NormalizeTheme and config.NormalizeColorMode
(config/config.go). Extended config.UIConfig (ui.theme,
ui.color_mode) in ~/.ktop/config.yaml with auto defaults.
- APIs / Signatures:
[#] Automatic background and color-depth detection (default)
ktop
[#] Force light or monochrome theme
ktop --theme=light
ktop --theme=monochrome
[#] Override terminal color depth for SSH or multiplexer sessions
ktop --theme=dark --color-mode=256
[#] ~/.ktop/config.yaml
ui:
theme: auto
color_mode: auto
- Impact & Behavioral Notes: Preferences configured under
ui.theme and ui.color_mode in ~/.ktop/config.yaml apply
automatically at startup; --theme and --color-mode
command-line flags override saved settings for the current
session without mutating the config file. Unrecognized
values exit immediately with a validation error listing
accepted options.
* Core Architecture & Data Pipeline
- Immutable Snapshot Model and Lock-Free SnapshotBuilder
- Problem / Context: Overview panels and resource detail
pages previously assembled view state separately from
mutable Kubernetes models, pointer-based resource.Quantity
fields, and live metrics lookups during draw cycles.
- Implementation Details: Added package internal/snapshot
(internal/snapshot/snapshot.go,
internal/snapshot/builder.go) defining value-type Snapshot,
ClusterInfo, SummaryData, NodeData, PodData, ContainerData,
and PSIData structs with deep-copy Clone() and indexed
accessors (NodeByName, PodByKey, PodsOnNode). Implemented
snapshot.Builder.Build for lock-free in-memory joins of
cached controller models and batch pod/container metrics,
alongside NodeDetailProjection, PodDetailProjection, and
ContainerUsageFromSnapshot. Updated overview
(views/overview) and detail panels (views/node, views/pod,
views/container) to render from Snapshot values and
projections.
- Impact & Behavioral Notes: Overview tables and detail pages
render from a unified point-in-time state representation
without performing network I/O or holding locks on the UI
draw goroutine.
- application.Runner Interface and application/tui Lifecycle
Package
- Problem / Context: Startup orchestration in cmd/ktop.go
directly coupled CLI flag parsing to tview page
construction, RBAC preflight checks, and terminal screen
initialization.
- Implementation Details: Defined the application.Runner
interface (Run(ctx context.Context) error, Stop() error in
application/app.go) and extracted interactive TUI
initialization into application/tui (tui.NewRunner,
tui.App, tui.Options in application/tui/app.go),
encapsulating theme resolution, overview layout, initial
column sorting, k8sC.AssertCoreAuthz(ctx), and minimum
terminal height checks.
- Impact & Behavioral Notes: Cleanly separates
command/configuration wiring from TUI execution while
preserving existing preflight authorization diagnostics and
exit behavior.
* Prometheus Metrics & Resource Reporting
- Upstream Timestamp Anchoring, Node CPU Series Selection, and
Fallback Alignment
- Problem / Context: Under Prometheus scraping, node CPU
metrics could disagree between Cluster Summary, the Nodes
table, and the Node Detail view when cAdvisor housekeeping
intervals exceeded the query window (causing transient 0m
drops), when local scrape timing jitter skewed counter rate
denominators, or when root cgroup (id="/") metrics exposed
both cpu="total" and per-core cpu="0".. series.
Additionally, valid 0m / 0Mi usage was treated as missing
usage data, causing views to fall back to displaying
requested resources instead of 0.0% used.
- Implementation Details:
- Updated KubernetesScraper (prom/scraper.go) and
InMemoryStore (prom/storage.go) to record explicit
upstream sample timestamps
(MetricSample.UpstreamTimestamp), skip unchanged cached
cAdvisor samples, and anchor stored sample timestamps
using exact upstream elapsed deltas.
- Added selectNodeCPUSeries and querySeriesForRate
(metrics/prom/prom_source.go) to filter root node CPU
series (id="/") to cpu="total" (or unlabelled aggregates)
when present, and fall back to a 3m lookback
(maxSeriesSampleAgeMs = 90s) when dynamic cAdvisor
housekeeping exceeds the 40s rate window.
- Updated GetNodeHistory and GetPodHistory
(seriesCounterMilliRates, aggregateSeriesHistory in
metrics/prom/prom_source.go) to convert cumulative
container_cpu_usage_seconds_total counters into
per-interval millicore rates and carry forward
multi-series values across staggered timestamps.
- Added explicit HasUsageCPU and HasUsageMemory booleans
across SummaryData, NodeData, ClusterSummary, and view
renderers (views/overview/node_panel.go,
views/overview/summary_panel.go, views/node/detail.go).
- Impact & Behavioral Notes: Cluster Summary, Nodes table
rows, Node/Pod Detail panels, and CPU history sparklines
report consistent millicore usage rates and utilization
percentages, and distinguish genuine idle usage (0m / 0.0%
used) from unavailable metrics fallback (requested).
* Upgrade & Compatibility Notes
- Backward Compatibility: Fully backward compatible with
existing CLI invocations, kubeconfig setups, and
~/.ktop/config.yaml files. Existing config.yaml files without
ui.theme or ui.color_mode default to auto.
- Deprecations & Retractions: None.
- Migration Actions: None required. Users running on light
terminals or $NO_COLOR environments will automatically
receive matching palettes under the default --theme=auto
setting; users who prefer the classic dark palette regardless
of terminal background can set --theme=dark or configure
ui.theme: dark in ~/.ktop/config.yaml.
* Sun Nov 15 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.6.2:
This release adds container-level CFS CPU throttling visibility
and an at-a-glance Cluster Health Score percentage in the
overview header.
* Features
- CFS CPU Throttling (#167):
- Added container_cpu_cfs_throttled_seconds_total,
container_cpu_cfs_throttled_periods_total, and
container_cpu_cfs_periods_total to the Prometheus metric
allowlist.
- Computed per-container and pod-level CFS CPU throttling
percentages (preferring throttled/total period ratios with
a throttled-seconds rate fallback).
- Added a sortable THROTTLE column (key h) to the Overview
Pods table (toggleable via the C column selector and
persisted in ~/.ktop/config.yaml) and the Pod Detail
Containers table, plus a CFS: indicator in the Pod Detail
Info header.
- Cluster Health Score (#170):
- Added a composite 0–100 cluster health score calculated
from node readiness, failed/OOM pods, PSI saturation stalls
(>20%), node pressure conditions, and metrics availability.
- Rendered color-coded Health: <score>% in the Cluster
Summary header (green ≥90%, yellow ≥70%, orange ≥50%, red
<50%).
* Sat Nov 07 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.6.1:
ktop v0.6.1 delivers UI ergonomics, subpage polish, and expanded
multi-OS distribution. This release adds interactive column
sorting and filtering to the Pod Detail Containers table,
surfaces live Pressure Stall Information (PSI) metrics directly
within Node and Pod detail headers, introduces an interactive
keyboard shortcut overlay modal (? or F1), enables direct
clipboard copying for selected resource names (y), adds CLI flags
for initial table sorting (--sort-nodes, --sort-pods), and
packages native Windows binary builds and zip archives in
automated releases.
* Pod Detail Containers Table Sorting & Filtering (#165)
- Interactive Sorting: Added interactive column sorting to the
Containers table in the Pod Detail page with hotkey bindings:
c (CPU), m (Memory), n (Name), i (Image), s (Status), and r
(Restarts).
- Persistent Direction: Preserves active sort column and
direction across periodic metric refresh cycles.
- Filter Support: Integrated slash (/) filtering to quickly
search and filter container names within pods.
* Detail Views PSI Resource Stall Indicators (#168)
- Info Header PSI Metrics: Integrated live Pressure Stall
Information (PSI) metrics (CPU, MEM, IO) directly into the
condensed Info header box on both Node Detail and Pod Detail
pages.
- Color Thresholds: Displays stall percentages styled by
severity: green (<2%), yellow (2–10%), orange (10–25%), and
red (≥25%).
- Kernel Guardrail: Renders PSI: ⚠ N/A when running against
nodes with Linux kernels older than 4.20 where PSI is
unsupported.
- Vertical Space Conservation: Retains a single compact
sparkline row (CPU, MEM, Net, Disk), preserving terminal
space for the Containers and Pods tables.
* Keyboard Shortcut Help Overlay Modal (#169)
- Contextual Help Modal: Added an interactive keyboard shortcut
overlay modal triggered via ? or F1 from any page.
- Categorized Reference: Groups all available keybindings into
categorized sections: General Navigation, Table Controls,
Column Customization, Detail Views, and Log Viewer.
- Isolated Event Handling: Modal cleanly dismisses on Esc,
Enter, or q, restoring the previous page state and table
focus without triggering application exit.
* Clipboard Copy for Selected Resource Names (#171)
- Resource Yank Key: Added y shortcut key to copy the currently
selected node, pod, or container name to the system
clipboard.
- Visual Feedback: Displays temporary confirmation in the
footer upon successful copy.
* Initial Table Sorting CLI Arguments (#174)
- CLI Startup Flags: Introduced --sort-nodes and --sort-pods
CLI flags to specify initial sort columns on startup (e.g.,
ktop --sort-nodes=cpu --sort-pods=memory).
- Input Validation: Validates user-specified sort keys against
recognized column identifiers with helpful error diagnostics
on invalid arguments.
* Native Windows Binary Builds & Zip Archives (#166)
- Windows Cross-Compilation: Configured GoReleaser to produce
native Windows binaries (windows/amd64, windows/arm64) for
both standalone ktop.exe and kubectl-ktop.exe plugin
executables.
- Zip Packaging: Configured .zip archive formats for Windows
distribution alongside existing .tar.gz archives for Linux
and macOS.
* Documentation & Configuration Reference (#173)
- Guide Updates: Updated README.md, docs/guide.md, docs/cli.md,
and docs/psi.md documenting new CLI flags, keyboard
shortcuts, PSI stall indicators, and multi-OS installation
workflows.
* Fri Nov 06 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.6.0:
ktop v0.6.0 introduces Kubernetes Pressure Stall Information
(PSI) resource contention metrics, a dedicated user session
directory with rotated logging (~/.ktop/), dynamic in-app table
column selection and configuration persistence
(~/.ktop/config.yaml), interactive column sorting and filtering
across subpages, major Prometheus scraper and metric store
performance optimizations, codebase modernization, and toolchain
upgrade to Go 1.27.
* PSI (Pressure Stall Information) Metrics
- Resource Contention Signals: Integrated cAdvisor/kubelet PSI
metrics (container_pressure_cpu_waiting_seconds_total,
container_pressure_memory_waiting_seconds_total,
container_pressure_io_waiting_seconds_total) across node and
pod workloads.
- Overview STALL Column: Added a STALL column to Nodes and Pods
overview tables rendering the dominant waiting stall
percentage (CPU, Memory, or I/O) over the scrape window.
- Cluster Summary Stall Gauge: Added cluster-level PSI stall
metrics to the Cluster Summary header.
- Version Guardrails: Added runtime version checks that surface
⚠ PSI beta in the cluster header when Kubernetes is <1.36 and
prefix STALL values with ⚠ 0% when node kernels are <4.20.
* User Session Directory & Rotated Logging (~/.ktop/)
- Session Directory: Introduced automatic creation of ~/.ktop/
(mode 0700) for user-specific data, relocatable via the
$KTOP_DIR environment variable.
- Rotated Structured Logging: Integrated log/slog and
lumberjack.v2 writing to ~/.ktop/ktop.log (mode 0600) with
automatic 10MB rotation, retaining the last 3 sessions
without interfering with the terminal display.
- CLI Logging Flags: Added --log-level (debug, info, warn,
error) and --log-format (text, json) flags.
- Graceful Degradation: Application continues running cleanly
if directory or file creation fails due to restrictive
filesystem permissions.
* Dynamic Column Configuration & Persistence
(~/.ktop/config.yaml)
- Interactive Column Selector Modal: Added interactive column
selection dialog triggered via the = hotkey on focused
overview tables, supporting Space toggle, Enter apply, and
Esc cancel.
- Active Default Columns: Enforced compact default column
layouts for Nodes (NAME, STATUS, RST, PODS, DISK, CPU, MEM)
and Pods (NAMESPACE, POD, READY, STATUS, RST, AGE, CPU,
MEMORY), preventing horizontal table sprawling on standard
terminals unless explicitly requested with
- -show-all-columns.
- Configuration Schema: Introduced ~/.ktop/config.yaml
supporting table column customizations with resolved defaults
for metrics collection and logging.
- Automatic Persistence: Column selections passed via CLI flags
(--node-columns, --pod-columns) or modified via the
interactive modal automatically persist to
~/.ktop/config.yaml.
- Modal Event Isolation: Isolated modal input capture so
dismissing the column dialog with Esc restores table focus
without triggering application-level exit.
* Subpage Navigation, Sorting & UI Consolidation
- Shared Table Controller: Extracted reusable
ui.TableController encapsulating sort toggling, shortcut key
binding, slash / filter lifecycle, and scroll titles.
- Node Detail Pods Sorting & Filtering: Enabled interactive
column sorting (c CPU, m MEM, n NAMESPACE, p POD, s STATUS, r
RESTARTS, d READY, a AGE) and / slash filtering on the Node
Detail Pods table.
- Header Shortcut Collision Fix: Renamed Node Detail Pods
second column from NAME to POD, matching the Overview page
and fixing the hotkey collision on 'N' with NAMESPACE.
- Format Consolidation: Unified detail formatting utilities
(FormatCPU, FormatMemory, FormatDuration, FormatEventAge,
Truncate, AdaptiveRateMax, CycleFocus) into ui/format.go.
* Performance & Scraper Optimizations
- Scraper Loop Deduplication: Eliminated duplicate background
scrape goroutines in KubernetesScraper, halving proxy scrape
traffic to node kubelets and cAdvisor endpoints.
- O(S) Pod Metrics Aggregation: Rewrote GetAllPodMetrics from
an O ( N ns × N pods × N series ) Cartesian scan into a
single-pass O ( S ) aggregation grouped by (namespace, pod,
container).
- Node Metric Query Deduplication: Reused existing node metrics
during overview and summary refresh cycles to avoid duplicate
queries.
- Pod-to-Node Indexing: Pre-indexed pods by Spec.NodeName in O
( P ) when constructing node models.
- Sparkline Memory Leak Fix: Added automatic eviction of
deleted pods and nodes from memory sparkline maps.
- InitContainer Metric Correctness: Corrected CPU request
accounting in GetPodContainerSummary for pods configured with
init containers.
- Informer Resilience & RBAC Fallback: Replaced background
informer sync panics with graceful error recovery, supporting
namespace-scoped RBAC clusters.
- TUI Concurrency Deadlock Fix: Switched refresh queue delivery
to non-blocking sends and debounced filter inputs to
eliminate UI freezes.
* Codebase Simplification & Toolchain Modernization
- Dead Code Removal: Removed unused views/pod/logs.go and
deprecated metrics informer/lister infrastructure in k8s/.
- Direct Metric Summation: Eliminated redundant
v1beta1.PodMetrics round-trip conversion in
MainPanel.refreshPods.
- Go 1.27 Toolchain: Upgraded module toolchain to Go 1.27
across go.mod, Dockerfile, and GitHub Actions workflows.
- Standard Library Idioms: Modernized codebase to use
slices.Sort, slices.Contains, slices.Clone, and standardized
error wrapping with %w.
- Multi-OS CI Matrix: Expanded GitHub Actions CI test suite to
validate builds and tests across Linux, macOS, and Windows
(windows-latest).
* Tue Jan 13 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.5.3:
* Net and Disk I/O Visualization updates
- Node network and disk IO metrics have been updated with
better normalization logic to display metrics
- Pod detail view now shows disk read/write rates in the
visualization
- Pod network visualization is disabled per-pod for now
- Update to version 0.5.2:
* Bug Fix
This release fixes UI issues and memory consumption that was
reported in #141.
- Fixes
- Internal refactor to better manage locks
- Introduction of scrape timeout to avoid freeze
- Reduce the number of metrics to only store 8 metrics that
ktop actually uses
- Add string interning for metrics label deduplication
- Reduce Prom MaxSamples to 50
- Update to version 0.5.1:
* Bug Fix Release
This patch release fixes a critical startup hang that could
occur when using Prometheus metrics.
Problem: ktop would sometime hang indefinitely when using
Prometheus metrics source and one or more nodes were slow or
unresponsive.
Root Cause: The initial metrics collection blocked startup,
waiting synchronously for all nodes to respond. Sequential node
scraping meant one slow node would block all others, with no
per-request timeout.
Solution:
- Test connectivity before starting collection (fails fast on
RBAC issues)
- Non-blocking first collection with timeout
- Parallel node scraping instead of sequential
- Per-request timeout (30s) prevents indefinite blocking
Result: ktop now starts immediately and populates metrics in
the background.
* Tue Jan 13 2026 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.5.0:
This is a massive release that updates ktop in several major
ways. First, this release introduces Prometheus as a (default)
metrics source, providing richer metrics and better accuracy when
available. Second, the UI has been significantly enhanced with
new detail views, improved navigation, and polished
visualizations to make ktop a tool you can use daily to watch
over your Kubernetes clusters.
* New Features
- Prometheus Metrics Support - Native Prometheus scraping from
kubelet, cAdvisor, and API server endpoints
- Prometheus as Default - Metrics source now defaults to
Prometheus with graceful fallback
- Runtime Namespace Filtering - Filter pods by namespace at
runtime
- Content Filtering - Search and filter content within views
- Column Sorting - Sort tables by clicking column headers
- Resource Detail Views - Drill-down detail pages for nodes,
pods, and containers
- Context-Aware Navigation - Navigation hints adapt to current
view
- Toast Notifications - User messages displayed via toast
windows
* Improvements
- Redesigned cluster summary panel
- Improved summary statistics display
- Enhanced health check reporting
- Enhanced sparkline visualizations
- Unified runtime storage backend for metrics
- Dynamic height adjustment on terminal resize
* Documentation
- Updated documentation to reflect the new changes
- New GitHub Pages published at
https://vladimirvivien.github.io/ktop/
* Dependencies
- Bump golang.org/x/oauth2 from 0.7.0 to 0.27.0 (#61)
* Mon Jul 07 2025 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.4.1:
* Fix Homebrew cask release (#56)
* Mon Jul 07 2025 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 0.4.0:
* This release introduces new command-line options to filter
which columns are displayed in nodes and pods tables.
Users can now customize the view by specifying columns with
- -node-columns and --pod-columns flags.
- Column Filtering
You can now customize which columns are displayed in the
nodes and pods tables. This is useful when you want to focus
on specific metrics or when working with limited screen
space.
To show only specific node columns:
ktop --node-columns NAME,CPU,MEM
To show only specific pod columns:
ktop --pod-columns NAMESPACE,POD,CPU,MEMORY
You can combine both filters:
ktop --node-columns NAME,CPU,MEM --pod-columns NAMESPACE,POD,STATUS
Available node columns:
- NAME
- STATUS
- AGE
- VERSION
- INT/EXT IPs
- OS/ARC
- PODS/IMGs
- DISK
- CPU
- MEM
Available pod columns:
- NAMESPACE
- POD
- READY
- STATUS
- RESTARTS
- AGE
- VOLS
- IP
- NODE
- CPU
- MEMORY
These enhancements improve the usability and customization of
ktop, allowing users to tailor the displayed information to
their needs. The updated automation scripts also ensure a
smoother release workflow.
* What's Changed
- Update CI/release scripts (#55)
- Add column filtering options for nodes and pods in ktop (#51)
- Bump golang.org/x/net from 0.36.0 to 0.38.0
- Bump golang.org/x/net from 0.23.0 to 0.36.0
* Fri Jul 26 2024 opensuse_buildservice@ojkastl.de
- Update to version 0.3.7:
* Fixes/updates to goreleaser and github actions
* Wed Jul 10 2024 opensuse_buildservice@ojkastl.de
- Update to version 0.3.6:
* Bump golang.org/x/net from 0.17.0 to 0.23.0
* Bump google.golang.org/protobuf from 1.27.1 to 1.33.0
* Bump golang.org/x/net from 0.7.0 to 0.17.0
* Bump gopkg.in/yaml.v3 from 3.0.0-20210107192922-496545a6307b to
3.0.0
* Mon Apr 17 2023 kastl@b1-systems.de
- Update to version 0.3.5:
* Implements an informer for metrics-api types
* Support for OCI image release
* Bump golang.org/x/crypto from 0.0.0-20220214200702-86341886e292
to 0.1.0
* Bump golang.org/x/net from 0.0.0-20220127200216-cd36cc0744dd to
0.7.0
* Bump golang.org/x/text from 0.3.7 to 0.3.8
* Bump github.com/emicklei/go-restful
* Homebrew documentation update
- skip non-existent releases
* 0.3.1
* 0.3.2
* 0.3.3
* 0.3.4
/usr/bin/ktop /usr/share/doc/packages/ktop /usr/share/doc/packages/ktop/README.md /usr/share/licenses/ktop /usr/share/licenses/ktop/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Nov 29 22:00:46 2026