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

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
2번째 줄: 2번째 줄:
;리눅스 kubectl 설치
;리눅스 kubectl 설치


<source lang='bash'>
<syntaxhighlight lang='bash'>
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl


chmod +x ./kubectl
chmod +x ./kubectl
sudo mv kubectl /usr/local/bin/
sudo mv kubectl /usr/local/bin/
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@centos7:~# curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
root@centos7:~# curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                 Dload  Upload  Total  Spent    Left  Speed
                                 Dload  Upload  Total  Spent    Left  Speed
100 44.5M  100 44.5M    0    0  865k      0  0:00:52  0:00:52 --:--:--  867k
100 44.5M  100 44.5M    0    0  865k      0  0:00:52  0:00:52 --:--:--  867k
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@centos7:~# chmod +x ./kubectl
root@centos7:~# chmod +x ./kubectl
root@centos7:~# mv kubectl /usr/local/bin/
root@centos7:~# mv kubectl /usr/local/bin/
root@centos7:~# kubectl version --client
root@centos7:~# kubectl version --client
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 12월 26일 (토) 01:45 판

1 개요

리눅스 kubectl 설치
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl

chmod +x ./kubectl
sudo mv kubectl /usr/local/bin/
root@centos7:~# curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/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
root@centos7:~# chmod +x ./kubectl
root@centos7:~# mv kubectl /usr/local/bin/
root@centos7:~# kubectl version --client
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}

2 같이 보기

3 참고

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