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. Try a demo without an account, then sign in with kubefit start to save training reps.

What you need

On macOS:

brew install kind kubernetes-cli helm

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.

Try a real rep — no account

kubefit demo

With CLI v0.1.13 or later, choose CKA or CKAD, or run kubefit demo cka or kubefit demo ckad directly. The command checks your tools, downloads and verifies a public demo pack, prepares the local cluster, seeds the task and opens the timed drill shell.

Install any missing tools and start Docker when prompted, then retry. You do not need separate doctor, login, packs or drill commands before the demo.

Solve the task, run kubefit grade to check your work, then exit to finish. The demo uses the real grader but does not save or sync a rep or change readiness.

Start training with saved progress

kubefit start

Run this from your normal terminal after leaving the demo. Choose CKA or CKAD if prompted, or pass the track directly. start remembers your choice, checks the tools, runs browser sign-in if needed, fetches a missing training pack and launches the next rep from your history. Create a free account and confirm your email if needed during sign-in.

Run kubefit grade and exit to finish a training rep and save progress. Run kubefit start again to continue. When finished, leave the drill shell and run kubefit end to clean up the environments.

For a standalone tool check, use kubefit doctor. See the full installation guide for details.

Everyday commands