Skip to content

kubernetes

Version 2026.144.1443
Repo superproject

Kubernetes client toolchain — kubectl, helm, and k3d — at stable /usr/bin paths The kubernetes candy installs the three core Kubernetes client tools uniformly across every distro: kubectl (the API client — from the distro package on arch/fedora, or the official dl.k8s.io release mirror as a fallback binary), helm (the chart package manager — from the distro package or the upstream get-helm-3 script), and k3d (the k3d-in-docker cluster manager, always a standalone release binary). Each one lands at a predictable /usr/bin path and answers a version query, so any box composing this candy can drive a cluster with no further setup. The scenarios and check block assert exactly that — they FAIL if any of the three binaries is missing or cannot report its version.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run download=https://github.com/k3d-io/k3d/releases/download/${K3D_VERSION}/k3d-linux-${ARCH}
run command=if [ ! -x /usr/bin/kubectl ]; then ARCH_TRIPLET=“${ARCH:-$(dpkg –print-architecture 2>/dev/null || echo amd64)}” curl -fsSL “https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH_TRIPLET}/kubectl” \ -o /usr/bin/kubectl chmod 0755 /usr/bin/kubectl fi
run command=if [ ! -x /usr/bin/helm ]; then curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 -o /tmp/get-helm-3.sh chmod 0755 /tmp/get-helm-3.sh /tmp/get-helm-3.sh rm -f /tmp/get-helm-3.sh [ -x /usr/local/bin/helm ] && ln -sf /usr/local/bin/helm /usr/bin/helm || true fi
check the kubectl API client binary is installed at /usr/bin/kubectl
check kubectl reports its client version and exits cleanly
check the helm chart package manager binary is installed at /usr/bin/helm
check helm reports its short version string and exits cleanly
check the k3d cluster manager binary is installed at /usr/bin/k3d
check k3d reports its release version and exits cleanly
agent-check with a container runtime available, k3d can provision a local multi-node Kubernetes cluster for development and testing
check command=/usr/bin/kubectl version –client
check command=/usr/bin/k3d version