본문 바로가기

+ 기타

[mac] macOS에 kubectl 설치 및 설정

반응형

kubectl 설치 및 설정

최신 버전(1.25.x)

brew install kubectl
kubectl version --client --short
$ kubectl version --client --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.25.1
Kustomize Version: v4.5.7

1.22.10 버전 설치

sudo curl -fsSL https://storage.googleapis.com/kubernetes-release/release/v1.22.10/bin/darwin/amd64/kubectl -o /usr/local/bin/kubectl
sudo chmod +x /usr/local/bin/kubectl
kubectl version --client
$ kubectl version --client --short
Client Version: v1.22.10

 

참고URL

- https://kubernetes.io/ko/docs/tasks/tools/install-kubectl-macos/

- http://pwittrock.github.io/docs/tasks/tools/install-kubectl/

 

728x90
반응형