Ubuntu20.04LTS와 Rancher로 kubernetes 구축
2834 단어 rancherkubernetes
하드웨어
소프트웨어
OS: Ubuntu 20.04 LTS
Docker: version 19.03.8
Rancher: Docker 버전 2.4.2
구성
마스터 노드 1대, 워커 1대의 구성으로 되어 있습니다. 클러스터 구성이 아닙니다.
(본래, 마스터, 워커 모두 3대 이상이 클러스터 구성의 조건이 되고 있습니다)

작성 절차
USB에 Ubuntu20.04 LTS 이미지를 만들고 설치
ASRock은 순조롭게 설치할 수 있었지만 Jumpber는 SD 카드가 인식 할 수없는 오류가 계속 발생했습니다.
mmc0: Timeout waiting for hardware cmd interrupt.
모듈을 메모리에서 떨어뜨리는 것으로 대응했다. 그러나 PC를 재부팅하면 다시 돌아갑니다.
sudo modprobe -r sdhci
sudo modprobe -r sdhci_acpi
Docker 설치
sudo apt install docker.io
sudo usermod -aG docker <<アカウントID>>
Rancher 도입
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
공식: (htps : // 란치 r. 이 m/do cs/란치ぇr/v2. x / 엔 / 쿠이 ck-s rt-gu gude / / p p y 면 t / 쿠이 cks rt- 마누아 l - 트 p /)
Rancher 클러스터 만들기
클러스터를 만들어갑니다. 온프레 구성이므로 Custom을 선택합니다.

자세한 것은 이름 이외의 디폴트로 결정했습니다.
kubernetes 마스터와 작업자 만들기
Cluster의 작성·편집으로 노드를 추가할 수 있습니다.
etcd | Control Plane | Worker를 확인하고 아래에 표시된 명령을 각 PC에서 실행하면됩니다.
Jumper에 etcd, Control Plane. ASRock에 Worker를 설정합니다.

잠시 후(체감 10분 미만?) 노드가 Active가 되었습니다.

요약
매우 쉽게 할 수 있습니다.
잠시 동안 이것으로 kubernetes 공부 전진하자.
Reference
이 문제에 관하여(Ubuntu20.04LTS와 Rancher로 kubernetes 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/inunekousapon/items/b592ea64027dd2a6fc09텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)