전체 글
-
[K8S] kubespray inventory_builder 제거Kubernetes 2025. 3. 21. 13:00
Kubespray 2.27.0부터 inventory_builder가 삭제되었습니다!https://github.com/kubernetes-sigs/kubespray/commit/719c0b00c5b21f200e6ad14de3ac54b2b2dfd975 Remove the inventory_builder script · kubernetes-sigs/kubespray@719c0b0This only really help with the easiest part of building your inventory (listing the hosts) as you still need to edit your groups vars and similar. The opaqueness of the script does not rea..
-
[Ubuntu] local-repo + docker-ce repo 생성하기Linux 2025. 3. 21. 12:47
폐쇄망 환경에서 Kubernetes를 설치할 때 필요한 로컬 레포지토리 및 Docker CE 레포지토리를 온라인 환경에서 준비했던 방법입니다.☞ [K8S][폐쇄망]Kubespray로 Kubernetes 설치하기 - Ubuntu Local Repo 도구 설치sudo apt-get install apt-mirror 공식 버전 업데이트 종료로 sync 오류가 발생하기 때문에 apt--mirror fork 버전을 사용git clone https://github.com/Stifler6996/apt-mirrorsudo mv /usr/bin/apt-mirror /usr/bin/apt-mirror.backupsudo cp apt-mirror/apt-mirror /usr/bin/apt-mirrorsudo chmo..
-
[CentOS7/Rocky8] local-repo + docker-ce repo 생성하기Linux 2025. 3. 21. 12:17
폐쇄망 환경에서 Kubernetes를 설치할 때 필요한 로컬 레포지토리 및 Docker CE 레포지토리를 온라인 환경에서 준비했던 방법입니다.☞ [K8S][폐쇄망]Kubespray로 Kubernetes 설치하기 - CentOS7/Rocky8 Local Repo repposync 대상은 apppstream, baseos, epel 입니다.(GPU를 사용하지 않는다면 epel.tar.gz 파일을 제외해도 Kubernetes 설치에는 문제가 없습니다.) 시스템에서 활성화된 yum 레포지토리 목록 확인yum repolist 도구 설치 및 폴더 생성 yum install httpd createrepo yum-utilsmkdir /var/www/html/repos reposync를 이용해 rehat 시..
-
[K8S][폐쇄망]Kubespray로 Kubernetes 설치하기 - UbuntuKubernetes 2025. 3. 20. 23:59
설치 환경OS : Ubuntu 22.04Kubernetes : v1.27.7Kubespray : v2.23ansible-core : v2.12.5docker : v20.10Kubernetes 설치 최소 버전 : v1.25Python 필요 버전 : v3.9 - v3.11 설치 파일설치 디렉토리 (ex. install/)에 필요 파일들 준비☞ [K8S][폐쇄망] Kubespray 폐쇄망 설치 파일 준비하기☞ [Ubuntu] local-repo + docker-ce repo 생성하기☞ https://www.python.org/downloads/install/🤐 kubespray_cache_2.23.0.tgz🤐 kubespray-2.23.0.tgz🤐 k9s_Linux_amd64.tar.gz🤐 Pytho..
-
[K8S][폐쇄망]Kubespray로 Kubernetes 설치하기 - CentOS7/Rocky8Kubernetes 2025. 3. 20. 20:08
설치 환경OS : Rocky8.9Kubernetes : v1.27.7Kubespray : v2.23ansible-core : v2.12.5docker : v20.10Kubernetes 설치 최소 버전 : v1.25Python 필요 버전 : v3.9 - v3.11 설치 파일설치 디렉토리 (ex. install/)에 필요 파일들 준비(GPU를 사용하지 않는다면 epel.tar.gz 파일을 제외해도 Kubernetes 설치에는 문제가 없습니다.)☞ [K8S][폐쇄망] Kubespray 폐쇄망 설치 파일 준비하기☞ [CentOS7/Rocky8] local-repo + docker-ce repo 생성하기☞ https://www.python.org/downloads/install/🤐 kubespray_cache..
-
[K8S][폐쇄망] Kubespray 폐쇄망 설치 파일 준비하기Kubernetes 2025. 3. 20. 17:39
폐쇄망 환경에서 Kubespray를 사용하려면, 먼저 인터넷이 가능한 환경에서 필요한 파일들을 준비해야 합니다. kubesprayKubespray 저장소를 클론한 후, 필요한 구성을 마친 뒤 압축합니다.구성 예 : [K8S] Kubespray 설정 파일 변경하기git clone https://github.com/kubernetes-sigs/kubespray.git# 구성 파일 수정 후 압축tar cvf kubespry-2.23.0.tgz kubespray kubespray_cache공개망에서 kubespray를 이용하여 kubernetes 설치 후 생성된 cache 파일을 저장합니다. ☞ [K8S] Kubespray로 Kubernetes 설치하기 - CentOS7/Rocky8 ☞ [K8S] Kube..
-
[K8S] Kubespray로 Kubernetes 설치하기 - UbuntuKubernetes 2025. 3. 20. 17:32
설치 환경OS : Rocky8.9Kubernetes : v1.27.7Kubespray : v2.23ansible-core : v2.14docker : v20.10Kubernetes 설치 최소 버전 : v1.25Python 필요 버전 : v3.9 - v3.11 Kubernetes 설치하기swap 끄기swap : 메모리가 부족할 경우 사용되는 가상 메모리=> kubernetes에서 메모리를 더 효율적으로 관리하므로 메모리 스와핑으로 인한 성능 저하 방지를 위해 off# sudo su -swapoff -a 방화벽 끄기노드간의 원활한 통신을 위함sudo ufw disable sudo 권한 설정 (모든 노드에 설정)vi /etc/sudoers# 파일 하단에 입력hyun ALL=(ALL:ALL) ALLhyun..
-
[ERROR] The conditional check 'groups.get('kube_control_plane')' failed.Kubernetes 2025. 3. 20. 17:06
ubuntu22에서 ansible-core 이슈 발생! 환경os : ubuntu22.04kubespray : v2.23.0ansible-core : v2.14 에러 내용ansible-core 버전이 올라가면서 groups.get('kube_control_plane')가 None일 경우 false 처리가 아닌 "Conditional is marked as unsafe" 오류 발생하도록 변경되었다. TASK [kubernetes/preinstall : Stop if either kube_control_plane or kube_node group is empty] ***fatal: [baminet1]: FAILED! => {"msg": "The conditional check 'groups.get('ku..