KUBEFIT CLI

Install kubefit.

kubefit runs every exercise as a timed, graded drill on your own machine: Kubernetes tracks on a local kind cluster, LFCS in a disposable Ubuntu VM. Reps sync to this account.

What you need

On macOS:

brew install kind kubernetes-cli helm lima

On Linux, install Docker Engine and the tools from their official Linux packages or release binaries — the install guide links to each installer.

Get the binary

On macOS, install from the Homebrew tap. The binary is universal, so one formula covers Apple silicon and Intel.

brew tap BGilleran522/kubefit
brew trust BGilleran522/kubefit
brew install kubefit

Homebrew 7 requires brew trust for third-party taps. Without it the install stops with Refusing to load formula … from untrusted tap. Later versions are brew upgrade kubefit.

On Linux, download the matching static binary, verify its checksum, and install it:

(
  set -eu
  case "$(uname -m)" in
    x86_64) arch=amd64 ;;
    aarch64|arm64) arch=arm64 ;;
    *) echo "Supported Linux architectures: x86_64 and arm64" >&2; exit 1 ;;
  esac
  tmp=$(mktemp -d)
  trap 'rm -rf "$tmp"' EXIT
  cd "$tmp"
  curl -fsSL -o release.json https://api.github.com/repos/BGilleran522/homebrew-kubefit/releases/latest
  version=$(jq -er '.tag_name' release.json)
  asset="kubefit-$version-linux-$arch.tar.gz"
  sha=$(jq -er --arg name "$asset" '.assets[] | select(.name == $name) | .digest | select(test("^sha256:[0-9a-f]{64}$")) | ltrimstr("sha256:")' release.json)
  curl -fL -o kubefit.tar.gz "https://github.com/BGilleran522/homebrew-kubefit/releases/download/$version/$asset"
  printf '%s  kubefit.tar.gz\n' "$sha" | sha256sum -c -
  tar -xzf kubefit.tar.gz kubefit
  sudo install -m 0755 kubefit /usr/local/bin/kubefit
  kubefit version
)

The Linux binaries are statically linked, so they run on glibc and musl alike.

The download is open to everyone. Create a free account, confirm your email, then connect the CLI:

kubefit doctor
kubefit login
kubefit packs
kubefit drill cka

The full reference is at docs.kubefit.com.

Everyday commands