본문 바로가기

Kubernetes20

kubeadm 시 bridge-nf-call-iptables does not exist kubeadm init 시 아래와 같이 /proc/sys/net/bridge/bridge-nf-call-iptables does not exist 라는 에러 메시지가 나오는 경우가 있다. 이럴 경우 sudo modprobe br_netfilter 명령 후에 kubeadm init 명령을 실행 시켜 준다. 2023. 5. 1.
쿠버네티스 (Kubernetes) 설치 (ubuntu, kubeadm) 0. 설치 환경 (단일 master node 환경) OS : ubuntu 20.04.6 Container runtime : containerd 1.4.4 Kubernetes : 1.20.7 Network plugin : calico 3.17 1. containerd 설치 (master node, worker node 공통 설치 사항) apt 로 containerd 를 설치 한 뒤 설치하고자 하는 버전을 overwrite 한다 이렇게 하는 이유는 apt-cache madison containerd 로 검색 했을때 1.4.4 라는 원하는 버전이 apt 저장소에 없기 때문임 apt-get install -y containerd mkdir -p /etc/containerd containerd config def.. 2023. 4. 26.
Unable to locate package update (kubeadm 에서) 발생 시 해결책 저의 경우엔 kubeadm 설치 가능한 버전을 확인 해보기 위해 apt-cache madison 명령어를 쳤을때 아래와 같이 발생 하였습니다. 해당 문제를 해결하기 위해선 1. 아래와 같은 명령어를 실행합니다. shell > curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - OK 가 떨어지면 성공 2. package 받아올 repository 를 추가 합니다. shell> vi /etc/apt/sources.list.d/kubernetes.list 로 파일을 생성해서 아래 쪽애 아래와 같이 추가 합니다. deb http://apt.kubernetes.io/ kubernetes-xenial main 3. Pa.. 2023. 4. 16.
kubespray 로 kubernetes 설치 (ubuntu) 0. 설치 환경 kubspray 서버 Ubuntu , CPU 2, Memory 2G Hostname : k8sbootstrap ip : 192.168.101.143 Control plane 1대 Ubuntu , CPU 2, Memory 2G Hostname : k8smaster ip : 192.168.101.144 Worker node 3대 Ubuntu cpu 2, memory 2G 1번 worker node Hostname : k8sslave1 Ip : 192.168.101.145 2번 worker node Hostname : k8sslave2 Ip : 192.168.101.146 3번 worker node Hostname : k8sslave3 Ip : 192.168.101.147 내가 설치할 사양은 .. 2023. 3. 31.