Created
June 1, 2025 05:34
-
-
Save vprasadreddy/de08ade8d1d7163bc2242ac3feeb7db6 to your computer and use it in GitHub Desktop.
install-kubectl-on-macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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