ov-advanced/skills/eval-k8s/SKILL.md
Kubernetes cluster probe verb — `ov eval k8s <method>` for nodes, pods, ingress, storage class, addon health, apply/delete, and arbitrary resource GETs. Hermetic via vendored client-go; no external kubectl required.
npx skillsauth add overthinkos/overthink-plugins ov:test-k8sInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
MUST be invoked before any work involving: ov eval k8s commands,
cluster-readiness probes from test scripts, ingress / storage class
assertions, k3s default-addon health checks, or declarative k8s:
checks on eval: blocks in layer.yml.
ov eval k8s nodes # <name> <Ready|NotReady> per line
ov eval k8s wait-nodes [--count=N] [--name=<host>] [--timeout=120s] # block until N (or named) Ready
ov eval k8s pods [--namespace=<ns>] [--label=<sel>] # <ns>/<name> <phase> per line
ov eval k8s wait-ready --kind <K> --name <N> [--namespace=<ns>] [--timeout=120s] # block until resource Ready
ov eval k8s ingress [--namespace=<ns>] # <ns>/<name> class=<c> hosts=<h> backends=<b>
ov eval k8s ingressclass # <name> default=<bool>
ov eval k8s storageclass # <name> default=<bool>
ov eval k8s service [--namespace=<ns>] # <ns>/<name> <type> <clusterIP> <externalIP>
ov eval k8s lb-external-ip --namespace=<ns> --name=<svc> [--timeout=60s] # print assigned external IP
ov eval k8s addons [--namespace=kube-system] [--timeout=180s] # roll-up: Traefik + ServiceLB + local-path all Ready
ov eval k8s apply --file=<manifest.yaml> [--namespace=<ns>] # apply multi-doc YAML via dynamic client
ov eval k8s delete --file=<manifest.yaml> [--namespace=<ns>] # delete resources from manifest
ov eval k8s raw --resource=<plural> [--group=<g>] [--version=v1] [--name=<n>] [--namespace=<ns>]
Every verb accepts the same three cluster-selection flags, resolved in this precedence:
--kubeconfig <path> — direct kubeconfig file pointer. Overrides
everything.--cluster <name> — a ClusterProfile name
(~/.config/ov/clusters/<name>.yaml or ./clusters/<name>.yaml).
The profile's kubeconfig_context: selects the context; kubeconfig
path defaults to $KUBECONFIG then ~/.kube/config.--context <name> — override the kubeconfig context directly.kubectl with no flags).ov deploy add vm:k3s-srv (or any deploy whose layers include
k3s-server) automatically writes a ClusterProfile named after the
deploy, so after provisioning you can do:
ov eval k8s nodes --cluster k3s-srv
ov eval k8s addons --cluster k3s-srv
k8s: checks on layer testsThe verb is also callable from a layer's eval: block via the k8s:
discriminator field on Check. Every subcommand above maps to a method
name; shared modifiers (name:, namespace:, cluster:, timeout:,
kubeconfig:, k8s_kind:, k8s_count:, manifest:, k8s_resource:,
k8s_group:, k8s_version:) are available.
Example from layers/k3s-server/layer.yml:
eval:
- id: cluster-nodes-ready
scope: deploy
k8s: wait-nodes
cluster: "${deploy_name}"
k8s_count: 1
timeout: 180s
stdout: { contains: "Ready" }
- id: traefik-ingressclass
scope: deploy
k8s: ingressclass
cluster: "${deploy_name}"
stdout: { contains: "traefik" }
- id: addons-healthy
scope: deploy
k8s: addons
cluster: "${deploy_name}"
timeout: 240s
wait-nodes with name: set matches a single specific node (used by
k3s-agent's join-confirmation test). Without name:, it waits until
k8s_count: nodes are Ready.
kindToPluralResource()
in k8s_cmd.go. Static table by design; adding a new kind is a
one-line addition, avoiding the RESTMapper discovery bloat. Documents
without a namespace inherit --namespace.ov eval k8s raw --resource nodes lists nodes;
ov eval k8s raw --resource configmaps -n kube-system --name foo
prints one ConfigMap as JSON.kube-system. Explicit disable: in a
k3s-server layer will cause this method to fail — the failure is
intentional since the test speaks to "default k3s stack healthy"..status.loadBalancer.ingress[].ip /
[].hostname until one appears; for k3s this is ServiceLB
(klipper-lb) advertising the host's node IP.ov/k8s_cmd.go — the 13 K8s<Method>Cmd structs + shared
k8sClusterFlags. Dynamic-client via k8s.io/client-go/dynamic +
unstructured walkers, no typed clientset (keeps binary bloat ~5-8 MB
instead of ~15 MB with the typed clients).ov/testspec.go:55+ — K8s discriminator on Check plus the shared
resource-identity modifiers (Name, Namespace, Label, Cluster,
Manifest, K8sKind, K8sContext, Kubeconfig, K8sCount,
K8sResource, K8sGroup, K8sVersion).ov/testrun_ov_verbs.go — k8sMethods table + runK8s dispatcher
posK8s* flag builders. Matches the existing runLibvirt /
runSpice subprocess-delegation pattern.ov/k8s_config.go:162 LoadClusterProfile — how --cluster <name>
resolves to a kubeconfig + context.development
Claude Code multi-agent support in Overthink — sub-agents, dynamic workflows, and agent teams, and how each drives the existing `ov eval` disposable beds to test and verify. MUST be invoked before authoring or invoking an ov sub-agent / dynamic workflow / agent team, wiring agent-lifecycle hooks, or asking "which primitive should drive the R10 beds?".
tools
Mounts a virtiofs share tagged `workspace` at /workspace inside a VM guest via a systemd .mount unit. Use when a kind:vm entity shares a host directory into the guest and you need it auto-mounted (and re-mounted at every boot).
development
MUST be invoked before any work involving: the `kind: android` schema kind, a `target: android` deploy, the `apk:` layer package format (installing Android apps declaratively), AndroidDeployTarget, an in-pod emulator OR a remote/physical adb-endpoint device, or nested `pod → android` deployment. The first-class Android device + app surface that sits above `ov eval adb`/`appium`.
tools
Use when committing, branching, pushing, merging, tagging, creating PRs, or approving/merging PRs with gh — the feat/-branch, R10-gated, never-force-push landing workflow across the main repo + the plugins submodule + image/<distro> submodules. Covers sync-to-upstream, branch/worktree pruning, the fork+PR path for contributors without write access, and cross-repo @github landing order.