Tins · Utilities

k8s

A small Kubernetes client for Mojo: pods, jobs and services created, listed, watched and deleted, and pods' logs, in a pod with its service account or from a kubeconfig. It is what Orca uses to start a Dista cluster per run.

Install
pixi shelf add k8s-mojo
Version

0.1.2 on mojoshelf

Source

What it does

Works today

  • Manifests go in as JSON text; objects come back as json values, read with JSON pointers
  • A kubeconfig's server, CA, client certificate and key, or a token
  • An answer that isn't 2xx raises with the API's own message
  • exec and auth-provider users (cloud CLIs) aren't supported: pass a token

Correctness

Checked against Every call against a live kind cluster in CI

Also in Utilities

  • xml pull parser · path queries
  • lint mojolint · origin and threading mistakes
  • Every tin