인텔맥 MacOS 상에 Kubectl 설치
조회 788 · 댓글 0
$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 154 100 154 0 0 437 0 --:--:-- --:--:-- --:--:-- 443
100 50.6M 100 50.6M 0 0 3705k 0 0:00:13 0:00:13 --:--:-- 3636k
$ chmod +x ./kubectl
$ sudo mv ./kubectl /usr/local/bin/kubectl
Password:
$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:58:47Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"darwin/amd64"}
$ kubectl version --client --output=yaml
clientVersion:
buildDate: "2022-03-16T15:58:47Z"
compiler: gc
gitCommit: c285e781331a3785a7f436042c65c5641ce8a9e9
gitTreeState: clean
gitVersion: v1.23.5
goVersion: go1.17.8
major: "1"
minor: "23"
platform: darwin/amd64로그인 후 답글을 남길 수 있습니다.