Menu

Vizxr | Part 1 — A Kubernetes Client in Pure Dart
📰

Vizxr | Part 1 — A Kubernetes Client in Pure Dart

DEV Community: kubernetes·Ai2th·about 2 hours ago
#zSNbWpvU
#devtokubernetes#devto#dev#vizxr#path
Reading 0:00
15s threshold

There is no kubectl on a phone and no official Kubernetes client library for Dart. So Vizxr talks to the API server the way kubectl does underneath: plain HTTPS and JSON.

🔌 The client

Everything goes through one service, k8s_client.dart , built on Dart's own HttpClient :

TLS: a SecurityContext with the system's trusted roots, plus an explicit insecure-skip-tls-verify option for self-signed home-lab clusters

Auth: bearer tokens from your kubeconfig

Requests: one _request(method, path, body) helper that every screen uses

Listing pods is literally:

final ns = namespace ; final path = ns != null ?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.