"리눅스 kubectl 최신버전 설치"의 두 판 사이의 차이

3번째 줄: 3번째 줄:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
curl -L https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x /usr/local/bin/kubectl
chmod +x kubectl
</syntaxhighlight>
mv kubectl /usr/local/bin/
<syntaxhighlight lang='console'>
root@localhost:~# curl -L https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed
100 44.5M  100 44.5M    0    0  865k      0  0:00:52  0:00:52 --:--:--  867k
</syntaxhighlight>
<syntaxhighlight lang='console'>
root@localhost:~# chmod +x /usr/local/bin/kubectl
root@localhost:~# mv kubectl /usr/local/bin/
root@localhost:~# kubectl version --client
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
</syntaxhighlight>
</syntaxhighlight>



2022년 10월 19일 (수) 19:04 판

1 개요

리눅스 kubectl 설치
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin/

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}