문제의 해당 명령어는 아래와 같다.
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg <https://packages.cloud.google.com/apt/doc/apt-key.gpg>
해본 노력
해결책
kubenetes 공식 홈페이지에 있는 패키지 매니저를 사용하지 않는 경우로 진행
CNI 설치
wget <https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz>
udo mkdir -p /opt/cni/bin
sudo tar -xvf cni-plugins-linux-amd64-v0.9.1.tgz -C /opt/cni/bin/
kubeadm 설치
root@ubuntu:/usr/local/bin# sudo apt-get update
Hit:1 <https://download.docker.com/linux/ubuntu> focal InRelease
Hit:3 <http://kr.archive.ubuntu.com/ubuntu> focal InRelease
Hit:4 <http://kr.archive.ubuntu.com/ubuntu> focal-updates InRelease
Get:5 <http://kr.archive.ubuntu.com/ubuntu> focal-backports InRelease [108 kB]
Get:2 <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease [8,993 B]
Err:2 <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
Get:6 <http://kr.archive.ubuntu.com/ubuntu> focal-security InRelease [114 kB]
Reading package lists... Done
W: GPG error: <https://packages.cloud.google.com/apt> kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
E: The repository '<https://apt.kubernetes.io> kubernetes-xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@ubuntu:/usr/local/bin# apt-get install -y kubelet kubeadm kubectl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kubelet
E: Unable to locate package kubeadm
E: Unable to locate package kubectl
E: 라고 나오지만 kubeadm이라고 치면 잘 나오는 것을 확인했습니다.