1 개요[ | ]
- 우분투 kubectl 설치
- 최신버전 설치는 리눅스 kubectl 설치 참고
2 확인[ | ]
Console
Copy
root@zetawiki:~# kubectl
kubectl: command not found
3 apt update[ | ]
Console
Copy
root@zetawiki:~# apt update
Hit:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
46 packages can be upgraded. Run 'apt list --upgradable' to see them.
4 apt-transport-https 설치[ | ]
Console
Copy
root@zetawiki:~# apt install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
apt-transport-https
1 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
Need to get 26.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.26 [26.1 kB]
Fetched 26.1 kB in 0s (97.0 kB/s)
(Reading database ... 60033 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.2.26_amd64.deb ...
Unpacking apt-transport-https (1.2.26) over (1.2.25) ....................................]
Setting up apt-transport-https (1.2.26) ...###########...................................]
5 저장소 추가[ | ]
Console
Copy
root@zetawiki:~# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
OK
Bash
Copy
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
Console
Copy
root@zetawiki:~# cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
> deb http://apt.kubernetes.io/ kubernetes-xenial main
> EOF
root@zetawiki:~#
6 apt update[ | ]
Console
Copy
root@zetawiki:~# apt update
Hit:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:5 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [8,993 B]
Ign:6 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages
Get:6 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages [15.2 kB]
Fetched 24.2 kB in 3s (7,913 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
45 packages can be upgraded. Run 'apt list --upgradable' to see them.
7 kubectl 설치[ | ]
Console
Copy
root@zetawiki:~# apt install kubectl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
kubectl
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 8,906 kB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Get:1 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 kubectl amd64 1.10.1-00 [8,906 kB]
Fetched 8,906 kB in 3s (2,444 kB/s)
Selecting previously unselected package kubectl.
(Reading database ... 60033 files and directories currently installed.)
Preparing to unpack .../kubectl_1.10.1-00_amd64.deb ...
Unpacking kubectl (1.10.1-00) ...........................................................]
Setting up kubectl (1.10.1-00) ...####################...................................]
8 확인 2[ | ]
Console
Copy
root@zetawiki:~# kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-12T14:26:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
9 같이 보기[ | ]
10 참고[ | ]
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- Ubuntu (4)
우분투 sshd 설치 ― …우분투 sshd 설치 ― Jmnote우분투 절전모드 해제시 와이파이 안되는 문제 ― D4RT우분투 절전모드 해제시 와이파이 안되는 문제 ― Beyondthelimit