Skip to content
skensell201Public

About

Lens-like Kubernetes IDE with a live relationship graph (Tauri 2, React, Rust/kube-rs)

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Wiring logo

Wiring

A desktop Kubernetes IDE that shows how the resources in a namespace are wired together.

Website and documentation

Latest release CI macOS | Windows MIT license

The graph of the shop namespace, with the web Deployment selected and its wiring highlighted

Wiring's main view is a live graph of a namespace: Ingress → Service → Deployment → Pod, plus the ConfigMaps, Secrets, PersistentVolumeClaims, ServiceAccounts and HorizontalPodAutoscalers each workload uses. Select an object to highlight what it is connected to. From the same window you can read and edit its YAML, check its events, stream its logs, open a shell in it and forward a port to it.

It is built with Tauri 2, React and Rust (kube-rs), and runs on macOS and Windows.

Contents

Install

Download the latest installer from Releases.

Platform File First launch
macOS (Apple Silicon and Intel) Wiring_<version>_universal.dmg The build is unsigned, so macOS asks you to confirm it the first time. See macOS asks you to confirm the app.
Windows 10/11 Wiring_<version>_x64_en-US.msi or Wiring_<version>_x64-setup.exe The build is unsigned. When SmartScreen appears, choose More info → Run anyway.

The Windows installer wears Wiring's own dark theme.

macOS asks you to confirm the app

Wiring for macOS is not signed with a Developer ID yet, so Gatekeeper stops the app the first time you open it and says that the file could not be verified, that Apple could not check it for malicious software. That is the expected message for an unsigned build, not a damaged download. Three ways past it, easiest first:

  • Right-click, then Open. In the Finder, right-click Wiring.app in Applications and choose Open. The follow-up dialog has an Open button too, and the app opens without asking again.

  • Clear the quarantine flag. The browser marks the download; this clears the mark:

    xattr -dr com.apple.quarantine /Applications/Wiring.app
  • Download it from a terminal. The quarantine mark is set by the browser, not by the download itself, so fetching the .dmg with curl leaves it off and the app opens without any prompt:

    curl -L -O https://github.com/skensell201/wiring/releases/download/v<version>/Wiring_<version>_universal.dmg
    hdiutil attach Wiring_<version>_universal.dmg
    cp -R /Volumes/Wiring*/Wiring.app /Applications/
    hdiutil detach /Volumes/Wiring*

Wiring reads your kubeconfig from ~/.kube/config, or from KUBECONFIG when it is set. You can also add a kubeconfig file from inside the app with Add kubeconfig…. A file without contexts is refused. If Wiring finds no contexts at all, it opens on a welcome screen. That screen lists each file it looked at and what it found there (not found, can't be read, no contexts), with Add kubeconfig… and Rescan. On Linux, where no system installer carries the brand, that first screen opens with the mark and one line of what Wiring is.

Login helpers

Clusters that sign in through a helper program, such as gke-gcloud-auth-plugin, aws or kubelogin, need it installed. On macOS and Linux, Wiring uses your login shell's PATH, so it finds a helper installed with Homebrew or a cloud SDK even when you start Wiring from the Dock or a launcher. (When you start Wiring from a terminal, it already has your PATH.) Restart Wiring after installing one.

Features

Graph

The graph updates live from Kubernetes watches:

  • Filter it by kind with the chips under the title, or search it with ⌘K / Ctrl+K.
  • Pods that belong to the same owner collapse into one group. Double-click a group to expand it.
  • Status dots and badges show what is healthy, degraded or failing.
  • Select a yellow or red object to see why. Overview starts with the reason and the Kubernetes message behind it, followed by the chain of objects that leads to the root cause (for example Deployment → Pod → ImagePullBackOff). The same chain is highlighted on the graph.
  • NetworkPolicies show which pods they apply to and which pods they let in. Turn on the RBAC chips to see which Roles a ServiceAccount gets through which bindings, and the Node chip to see where each pod runs. A NotReady node is the cause of the pods stuck on it.

Navigator

The left sidebar lists the resources of the selected namespace by category: Workloads, Config, Network (with Network Policies), Storage, Access Control (Service Accounts, Roles and Role Bindings, Cluster Roles and Cluster Role Bindings) and Cluster (Nodes), followed by Custom Resources and Helm. Each kind shows a live count and the worst status among its objects. The sidebar collapses to an icon rail, from the button in its footer, where the running version and the check for updates stand. The clusters themselves are in the header: the button that shows the connected cluster opens a menu of your kubeconfig contexts, with Add kubeconfig… as its last entry.

The title bar runs across the whole window: the window's traffic lights keep their own room at its left on macOS, then come the cluster and namespace pickers, the search field in the middle, and the session's actions on the right. The sidebar starts below the bar, so its right border meets the bar's bottom line instead of crossing it. The brand stands at the top of the sidebar: the mark and the wordmark when it is open, the mark alone when it collapses to the icon rail.

Kinds your RBAC role cannot read are struck through instead of failing.

Empty and error states

When Wiring has nothing to show, the centre pane says why and offers the next step:

  • While connecting, the pane and the header show which cluster Wiring is dialling; Cancel stops it.
  • A failed connection names the cause, with Retry and Choose another cluster. The cause is one of: the cluster can't be reached, its certificate isn't trusted, the cluster didn't accept your credentials, a login helper isn't installed (with how to install it) or can't be run, or the cluster didn't answer within 20 seconds.
  • A namespace with no objects, a namespace you have no access to (RBAC), every kind hidden by the chips, and a search with no matches each get their own message and button. When there are too many objects to draw, the graph switches to tables and says so.
  • Tables of kinds you can read in only some namespaces say so above the rows.
  • While some resources can't be watched, the header reads Reconnecting….

Several namespaces

The namespace picker in the header takes one namespace (click its name), several (tick them, then Apply) or All namespaces. With more than one, the graph shows a lane per namespace, tables get a Namespace column, and the navigator counts across all of them. Up to 20 namespaces can be selected at once. Objects keep their own namespace for details, editing, logs, the terminal and actions; + Create has a namespace select. A selection with more than 1,500 objects is shown as tables only. All namespaces needs permission to list and watch cluster-wide. A kind your role cannot list that way is watched per namespace and marked partial.

Tables

Click a kind to open a kubectl get-style table:

  • Sort by any column, and filter with the search box.
  • Move between rows with ↑/↓.
  • Double-click a row, or press Enter, to jump to the object in the graph.

The Deployments table with the web Deployment's YAML open in the details panel

Custom resources

The navigator's Custom Resources section lists the API groups of the custom resource kinds the cluster's CRDs define, whether or not your role can list their objects. If you can't read CRDs, it falls back to API discovery and shows the kinds you can list instead, which may include kinds served by aggregated API servers; built-in groups such as metrics.k8s.io are never shown. Groups start collapsed; expand one to see its kinds (for example cert-manager.io → Certificate). The refresh button re-runs discovery. Click a kind to open a table of its objects in the selected namespaces, with the columns kubectl get shows for that kind, and Age. A kind's count appears once its table has been opened. The table updates live while it is open. Its details panel has Overview (including the status conditions), YAML with the same edit, diff and apply flow as built-in kinds, and Events. Custom resources are not watched for the graph, but one that owns a watched object (a Certificate owning a Secret, a Rollout owning ReplicaSets) appears there as its owner. Toggle those nodes with the Custom chip. + Create starts from a minimal manifest of the kind, and if access is lost while a table is open it shows the reason with Retry.

Helm

The Helm section opens its own view: a table of the releases in the selected namespaces, read from Helm 3's release Secrets, with chart and version, app version, revision, status and when it was last deployed. The list follows changes live, such as new revisions and status changes. Select a release to see its tabs below the table: Overview, the user-supplied Values, the History of stored revisions, the chart's Notes, and the Resources it installed that exist in the cluster; opening one of those shows it in the details panel. Its objects are highlighted on the graph, whose header reads Release web highlighted · Clear. Closing the release, Clear or switching namespaces removes the highlight. Wiring reads releases only: it never installs, upgrades or rolls back. Values can contain credentials, so Wiring never logs them. Helm's release Secrets are left out of the graph and the Secrets table. Show Helm storage in the Secrets table reveals them.

Details panel

The panel shows Overview, YAML and Events tabs for the selected object, plus Logs and Terminal for pods and workloads, and History for Deployments, StatefulSets and DaemonSets. Drag its top edge to resize it (or focus the edge and use ↑/↓). Maximise it with ⤢ and restore it with Esc.

Editing

  1. Edit on the YAML tab opens the object in an editor.
  2. Save (⌘S / Ctrl+S) shows a line diff of what will be sent.
  3. Apply replaces the object on the server with strict field validation, so unknown fields are rejected rather than silently dropped.

If the object changed on the server while you were editing, you can Reload (drop your edits) or Overwrite (resend on top of the new version). Server validation errors appear inline.

+ Create in the header starts from a template for any watched kind. The trash icon in the details panel deletes an object after confirmation. On a pod group it deletes every member pod, and the controller recreates them.

Rollout actions

Actions ▾ in the details panel, or a right-click on a graph node or a table row, opens the actions for the object:

  • Scale… (Deployments, StatefulSets) sets the replica count. When a HorizontalPodAutoscaler manages the workload, the dialog warns that it will override the value.
  • Restart (Deployments, StatefulSets, DaemonSets) replaces the pods the way kubectl rollout restart does.
  • Rollback… opens the History tab. Pick a revision to see its pod template diff, then roll back to it.

While a rollout runs, the node shows rolling updated/desired. A Deployment that misses its progress deadline turns red, and Overview shows why.

Port-forward

Port-forward… in the Actions menu (Pods, Services, Deployments, StatefulSets, DaemonSets) forwards a local port on 127.0.0.1 to the object. Pick one of its ports. The local port defaults to the same number when it is free. A Service or workload forward follows ready pods, so it keeps working through restarts and rollouts. The ⇄ button in the header lists the running forwards, with Open (in the browser), Copy and Stop. Forwards stop when you switch cluster or disconnect.

Logs

Pods and workloads (Deployment, StatefulSet, DaemonSet, Job, CronJob and pod groups) get a Logs tab:

  • It shows the last 500 lines of each container and then follows live output.
  • A workload's pods are merged into one view, each line prefixed with a coloured [pod/container] tag.
  • You can pick a container, switch to the previous run of a crashing container, and toggle server timestamps and line wrapping.
  • Search with match stepping, clear the view, or download the log to a file.
  • ANSI colours are rendered.

The Deployments table with live logs of the web Deployment, merged across its pods

Terminal

Pods and workloads (Deployment, StatefulSet, DaemonSet, Job and pod groups) get a Terminal tab. Pick the pod and container, then Connect to open a shell in it (bash when the image has it, otherwise sh). It is a full terminal, with colours, cursor keys, resizing with the panel, and copy with ⌘C / Ctrl+Shift+C. The terminal keeps Tab for the shell; press Ctrl+Shift+Tab to move focus back to the toolbar. The session ends with exit, Disconnect, or when you select something else. Images without a shell (distroless) say so.

Metrics

When the cluster runs metrics-server, the Pod, Deployment, StatefulSet and DaemonSet tables get CPU and Memory columns in kubectl top style (a workload sums its pods), and Overview shows usage against the summed requests and limits. A pod or workload at 80 % or more of a CPU or memory limit gets a cpu 85% / mem 92% badge on the graph. Usage is sampled every 15 s and never changes an object's status. Without metrics-server, or without access to pod metrics, Overview says so.

Updates

Wiring checks for a new release 10 seconds after launch and every 6 hours; on macOS you can also check from Wiring → Check for Updates…. When one is available, the header shows Update X.Y.Z. Its dialog shows the release notes, with Install and restart or Later.

Keyboard shortcuts

Keys Action
⌘K / Ctrl+K Focus the search box
⌘S / Ctrl+S While editing YAML, review the diff
Esc Close the innermost layer: a menu or dialog, then the maximised details panel, then the diff review, then the editor, then the selection
↑ / ↓, Enter In a table, move between rows; jump to the object in the graph
↑ / ↓ on the panel's top edge Resize the details panel
Enter / Shift+Enter In the log search, next / previous match
⌘C / Ctrl+Shift+C In the terminal, copy the selection
Ctrl+Shift+Tab Move focus out of the terminal

Try it on a demo cluster

examples/demo/setup.sh works against any local cluster (Docker Desktop, kind, minikube). It deploys:

  • two namespaces, shop and blog, including deliberately broken workloads (an image that cannot be pulled, a container that crashes on start);
  • the wiring-viewer and wiring-auditor RBAC identities, with matching restricted kubeconfig contexts, so you can see how Wiring handles kinds a role cannot read.
examples/demo/setup.sh                 # uses the docker-desktop context
examples/demo/setup.sh kind-kind       # or name another context
examples/demo/setup.sh --with-metrics  # also install metrics-server (flag and context can be combined, in any order)

--with-metrics applies the official metrics-server manifest and adds --kubelet-insecure-tls (once; re-running is safe), which local clusters need. It makes the CPU and Memory columns and the Overview usage rows show data; without metrics-server they stay empty.

The manifests are in examples/demo/: shop.yaml, blog.yaml and rbac.yaml.

Development

Prerequisites: Rust stable, Node 22, pnpm 9, and a kubeconfig with at least one context. On Linux, also install the Tauri system dependencies.

pnpm install
pnpm tauri dev          # run the app with hot reload

Checks (CI runs all of them on every push):

pnpm typecheck
pnpm test                                    # frontend unit tests (Vitest)
pnpm test:coverage                           # the same suite, enforcing the coverage thresholds
cd src-tauri
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test                                   # backend unit and IPC contract tests

# Needs a live cluster and kubectl:
WIRING_SMOKE_CONTEXT=docker-desktop cargo test --test smoke -- --ignored

# The custom resource and Helm phases of the smoke test create a CRD, so they run against
# docker-desktop and, with WIRING_SMOKE_EXTRAS=1, against a throwaway cluster of your own:
WIRING_SMOKE_CONTEXT=kind-kind WIRING_SMOKE_EXTRAS=1 cargo test --test smoke -- --ignored

CI builds and tests the backend on Linux, macOS and Windows, and runs the smoke test against a kind cluster on Linux: kind needs Docker for Linux containers, which the hosted macOS and Windows runners do not have.

Documentation site

The site at wiringk8s.xyz is built from this README and docs/ in a separate repository.

Project layout

src/                     React frontend
  app/                   store (zustand), startup, event wiring, global keys
  features/
    cluster/             header, cluster menu, namespace picker
    onboarding/          welcome, connecting and connection-failure panes
    navigator/           sidebar: the resource tree, Custom Resources, Helm
    graph/               React Flow canvas, nodes, edges, layout, kind chips
    table/               per-kind and custom resource tables
    details/             details panel: Overview, YAML, Events, History
    editor/              YAML editor, diff review, Create dialog
    actions/             Actions menu, Scale and Restart dialogs
    logs/                Logs tab, virtualised log view, ANSI rendering
    exec/                Terminal tab (xterm.js)
    forward/             Port-forward dialog, running-forwards popover
    helm/                Helm releases view
    update/              update checks, Update pill and dialog
  shared/                IPC types and commands, UI primitives, empty states
  styles/theme.css       design tokens (colours, type, radii)
src-tauri/               Rust backend
  src/commands.rs        the IPC commands
  src/session/           per-context watches, reducer, writes, rollouts, metrics polling
  src/store/             in-memory object cache
  src/graph/             graph model, relations, status, table rows
  src/logs/              log sessions, stream targets, pumps
  src/exec/              shell sessions
  src/forward/           port-forwards
  src/metrics/           metrics-server quantities and usage
  src/custom/            custom resource ids, tables and requests
  src/discovery.rs       custom resource kinds the cluster serves
  src/helm.rs            Helm releases from their storage Secrets
  src/kubeconfig.rs      context discovery
  src/shell_path.rs      login shell PATH for kubeconfig exec plugins
  src/updates.rs         self-update and the macOS menu
  tests/                 IPC contract tests, live smoke test
examples/demo/           demo namespaces and RBAC for a local cluster
docs/                    design specs, plans, IPC contract, release docs

Documentation

Document What it covers
IPC contract The backend ↔ frontend commands, events and payload shapes
MVP design Architecture, the graph model, relations and status rules
Navigator and tables design The sidebar, per-kind tables and RBAC handling
YAML editing design Edit, diff, apply, conflicts, Create and Delete
Pod logs design Log sessions, merging, previous runs and the log view
Problem explanation design Problem reasons, messages and the cause chain
Workload actions design Scale, restart, rollout history and rollback
Port-forward design Forward targets, pod selection and the forwards list
Metrics design metrics-server polling, usage columns and badges
Updater design Update checks, the feed and installing
Graph extras design NetworkPolicies, RBAC and Nodes on the graph
Multi-namespace design Namespace scopes, lanes and partial kinds
Exec terminal design Shell sessions and the Terminal tab
Onboarding design The welcome screen, connection failures and empty states
Custom resources and Helm design Discovery, the generic table, CR owners on the graph, Helm releases
Code signing Signing and notarizing the macOS and Windows installers in CI
Automatic updates The updater key and secrets, the update feed, checking a release

These are the implementation plans behind each feature:

Releasing

To release, push a tag that starts with v:

git tag -a v0.6.0 -m "Wiring v0.6.0"
git push origin v0.6.0

The release workflow builds a universal macOS .dmg and the Windows .msi and .exe installers, then attaches them to a draft GitHub release. Review the draft and publish it. Bump the version in package.json, src-tauri/tauri.conf.json and src-tauri/Cargo.toml before tagging.

The release's notes are the section of CHANGELOG.md for the tagged version: the workflow copies it into the release body, and the app shows those notes before it installs an update. Write them before the tag.

After you publish the release, rebuild the website so its landing page shows the new version.

The workflow signs and notarizes the macOS app and signs the Windows installers once the signing secrets are configured. Until then it builds unsigned. Code signing explains what to buy and which secrets to set. It also shows how to check a setup with a manual run (gh workflow run release.yml), which builds the installers as workflow artifacts without creating a release.

Installed copies update themselves from the latest published release; updates are signed with a separate updater key. Automatic updates explains the key, the secrets and how to check a release.

License

Wiring is released under the MIT License.

About

Lens-like Kubernetes IDE with a live relationship graph (Tauri 2, React, Rust/kube-rs)

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages