Skip to content

Instantly share code, notes, and snippets.

@vprasadreddy
Created June 1, 2025 05:34
Show Gist options
  • Select an option

  • Save vprasadreddy/de08ade8d1d7163bc2242ac3feeb7db6 to your computer and use it in GitHub Desktop.

Select an option

Save vprasadreddy/de08ade8d1d7163bc2242ac3feeb7db6 to your computer and use it in GitHub Desktop.
install-kubectl-on-macos
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl"
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl.sha256"
If valid, the output is:
kubectl: OK
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
sudo chown root: /usr/local/bin/kubectl
kubectl version --client
kubectl version --client --output=yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment