<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: chonle</title>
    <description>The latest articles on DEV Community by chonle (@chonle).</description>
    <link>https://dev.to/chonle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3688806%2F60af928f-67e3-4240-b48b-d01da3c773be.png</url>
      <title>DEV Community: chonle</title>
      <link>https://dev.to/chonle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chonle"/>
    <language>en</language>
    <item>
      <title>I Built a Kubernetes IDE in Rust + Swift Because Lens Was Eating My RAM</title>
      <dc:creator>chonle</dc:creator>
      <pubDate>Thu, 26 Mar 2026 09:23:14 +0000</pubDate>
      <link>https://dev.to/chonle/i-built-a-kubernetes-ide-in-rust-swift-because-lens-was-eating-my-ram-1d41</link>
      <guid>https://dev.to/chonle/i-built-a-kubernetes-ide-in-rust-swift-because-lens-was-eating-my-ram-1d41</guid>
      <description>&lt;p&gt;I manage clusters with 1,700+ pods daily. Lens was using 1.5 GB of RAM and taking 30 seconds to start. k9s was fast but I missed having a GUI for log viewing and resource inspection. So I built &lt;strong&gt;Krust&lt;/strong&gt; — a native Kubernetes IDE written in Rust and Swift.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every Kubernetes GUI I tried had the same issue: &lt;strong&gt;Electron&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Bundling an entire Chromium browser to display a table of pods is overkill. The result is slow startup, high memory usage, and a UI that never quite feels native. On the other hand, terminal tools like k9s are fast but limited - no multi-pod log aggregation, no visual diffing, no drag-and-drop topology graphs.&lt;/p&gt;

&lt;p&gt;I wanted something in between: &lt;strong&gt;GUI workflows with terminal performance&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────┐
│   Swift / SwiftUI / AppKit  │  ← Native macOS UI
├─────────────────────────────┤
│        UniFFI Bridge        │  ← Zero-copy FFI
├─────────────────────────────┤
│      Rust Core (kube-rs)    │  ← All K8s logic
└─────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Rust handles everything Kubernetes&lt;/strong&gt;: watch streams, data filtering, sorting, metrics aggregation, and YAML parsing. The Swift layer only does rendering.&lt;/p&gt;

&lt;p&gt;Key design decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compact data model&lt;/strong&gt;: ~700 bytes per pod vs ~70 KB for raw K8s objects. This is why 1,700 pods fit in 200 MB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NSTableView for large tables&lt;/strong&gt;: Only renders the ~30 visible rows. SwiftUI's &lt;code&gt;List&lt;/code&gt; re-renders everything — NSTableView doesn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP/2 multiplexing&lt;/strong&gt;: One connection per cluster handles all resource watchers simultaneously.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No garbage collector&lt;/strong&gt;: Rust's ownership model means predictable memory usage with no GC pauses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Benchmarks (1,700 pods, production cluster)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Krust&lt;/th&gt;
&lt;th&gt;k9s&lt;/th&gt;
&lt;th&gt;Lens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Memory&lt;/td&gt;
&lt;td&gt;~200 MB&lt;/td&gt;
&lt;td&gt;~600 MB&lt;/td&gt;
&lt;td&gt;1.5 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Startup&lt;/td&gt;
&lt;td&gt;&amp;lt;1s&lt;/td&gt;
&lt;td&gt;~3s&lt;/td&gt;
&lt;td&gt;5-30s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Threads&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App size&lt;/td&gt;
&lt;td&gt;26 MB&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;27+ resource types&lt;/strong&gt; with real-time watchers — Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, HPAs, Services, Ingresses, ConfigMaps, Secrets, Nodes, PVs, PVCs, Helm releases, CRDs, and more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Log Viewer
&lt;/h3&gt;

&lt;p&gt;This was the feature I built for myself first. 100K line ring buffer with &lt;strong&gt;&amp;lt;15ms full-text search&lt;/strong&gt;. JSON logs get auto-parsed and compacted. Multi-pod aggregation lets you tail logs from an entire deployment at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Terminal
&lt;/h3&gt;

&lt;p&gt;Built on SwiftTerm — a native terminal emulator with real TTY support. Auto-detects the right shell (&lt;code&gt;bash&lt;/code&gt; → &lt;code&gt;ash&lt;/code&gt; → &lt;code&gt;sh&lt;/code&gt;) so it works on Alpine and Busybox containers without configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cross-Cluster Diff
&lt;/h3&gt;

&lt;p&gt;Select any two resources from different clusters, see a side-by-side diff with Myers algorithm. Useful for comparing staging vs production configs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Helm Management
&lt;/h3&gt;

&lt;p&gt;List releases, view history, inspect values, rollback to any revision, upgrade with value preview. No &lt;code&gt;helm&lt;/code&gt; CLI needed — Krust talks directly to the Tiller/Helm storage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Security Audit
&lt;/h3&gt;

&lt;p&gt;31 built-in security checks + Trivy CVE scanning. Export results as SARIF. This is free — Lens charges $30/mo for similar functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Diagnostic Agent
&lt;/h3&gt;

&lt;p&gt;Built-in AI agent with 11 Kubernetes tools. Right-click a pod → "Explain with AI" and it inspects logs, events, and resource state to diagnose issues. Supports Claude, GPT, Gemini, Vertex AI, or local Ollama. BYOK — your API key, your machine, zero data leaves.&lt;/p&gt;

&lt;h3&gt;
  
  
  Resource Topology
&lt;/h3&gt;

&lt;p&gt;ArgoCD-style interactive graph showing Deployment → ReplicaSet → Pod → Service → Endpoints relationships. Drag nodes, expand/collapse, see the full picture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smart Filter Syntax
&lt;/h2&gt;

&lt;p&gt;Instead of multiple dropdowns, Krust has a single search bar with typed filters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;status:crash ns:prod cpu&amp;gt;&lt;/span&gt;80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgij7l1wg3wbyo7bb3llr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgij7l1wg3wbyo7bb3llr.png" alt="smart filter" width="800" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This finds crashing pods in the &lt;code&gt;prod&lt;/code&gt; namespace using more than 80% CPU. Works across all resource types.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keyboard-First
&lt;/h2&gt;

&lt;p&gt;Coming from k9s, I needed keyboard shortcuts. Krust supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Cmd+K&lt;/code&gt; — Command palette&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;S&lt;/code&gt; — Shell into selected pod&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;L&lt;/code&gt; — View logs&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;E&lt;/code&gt; — Edit YAML&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;D&lt;/code&gt; — Delete&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/&lt;/code&gt; — Focus search&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90er1xcp1xing5t9aab3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90er1xcp1xing5t9aab3.png" alt="Command palette" width="800" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Single-key shortcuts work when no text field is focused, just like k9s.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero Telemetry
&lt;/h2&gt;

&lt;p&gt;Krust connects only to your Kubernetes API server. No analytics, no cloud accounts, no phone-home. Your kubeconfig stays on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Free forever&lt;/strong&gt;: All 27 resource types, logs (single pod), terminal, port forwarding, YAML editor, Helm management, security audit, metrics, multi-cluster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pro ($9/mo)&lt;/strong&gt;: Multi-pod log aggregation, structured log parsing (JSON/logfmt), AI agent, topology graph, priority support.&lt;/p&gt;

&lt;p&gt;30-day trial with no sign-up required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;slarops/tap/krust
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or download the DMG from &lt;a href="https://github.com/SlarOps/homebrew-tap/releases" rel="noopener noreferrer"&gt;GitHub Releases&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Currently macOS 15+ (Apple Silicon and Intel). Windows and Linux are coming in April 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned Building This
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;UniFFI is production-ready&lt;/strong&gt;. Mozilla's FFI generator for Rust → Swift/Kotlin/Python works well. The generated bindings are clean and the type mapping is predictable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;NSTableView still beats SwiftUI for large datasets&lt;/strong&gt;. SwiftUI's &lt;code&gt;Table&lt;/code&gt; re-renders the entire view on data changes. NSTableView only touches visible rows. For 1,700+ rows with real-time updates, this matters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;HTTP/2 multiplexing is underused&lt;/strong&gt;. Most K8s tools open separate connections per resource watcher. A single HTTP/2 connection can multiplex all of them, reducing connection overhead and file descriptor usage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Compact data models compound&lt;/strong&gt;. Storing 700 bytes per pod instead of 70 KB means 100x less memory, but also faster sorting, filtering, and serialization across the FFI boundary.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you manage Kubernetes clusters and want a GUI that doesn't tax your system, give Krust a try. I'm actively developing it and would love feedback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Website&lt;/strong&gt;: &lt;a href="https://krust.io" rel="noopener noreferrer"&gt;krust.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>rust</category>
      <category>swift</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
