[K8s-1pro] install 쿠버네티스 어나더 클래스 강의 기반 rokcy -> ubuntu echo '======== [4-1] 패키지 업데이트 ========'# 강의와 동일한 실습 환경을 유지하기 위해 Linux Update는 하지 마세요!# sudo apt update -y # (x)echo '======== [4-2] 타임존 설정 ========'timedatectl set-timezone Asia/Seoultimedatectl set-ntp trueecho '======== [4-3] [WARNING FileExisting-tc]: tc not found in system path 로그 관련 업데이트 ========'sudo apt install -y iproute2 iputils-ping net-toolsecho '==.. 2025. 6. 18. [K8s] Controler-node ip가 변경될 경우 1. /etc/kubernetes/manifest 아이피 변경/etc/kubernetes/manifest 하위 대상cd /etc/kubernetes/manifestsudo find . -type f -exec sed -i 's/192.168.137.30/192.168.56.30/g' {} +2. 인증서 재생성기존 X.509 인증서 중 재생성이 필요한 인증서를 지운 후 재생성출처: https://github.com/kubernetes/kubeadm/issues/338?ref=jangho.io#issuecomment-407383077cd /etc/kubernetes/pki# apiserver 인증서 삭제sudo rm apiserver.{crt,key} # a. Default CIDR이 10.96.0.0/1.. 2025. 6. 18. [K8s] bash kubectl 자동완성 편의 기능# ubuntusudo apt install bash-completion# centossudo yum install -y bash-completion# 공통echo "source > ~/.bashrcecho 'alias k=kubectl' >>~/.bashrcecho 'complete -o default -F __start_kubectl k' >>~/.bashrcsource ~/.bashrc 2025. 6. 18. [K8s] 쿠버네티스 표준 생태계 오픈소스 2025. 6. 17. 3. Object 그려보며 이해하기 출처: https://cafe.naver.com/kubeops/36▶ Object ▶ Label / Selector / Naming (1)▶ Label / Selector / Naming (2) 2025. 4. 21. 2. 모니터링 설치 ※ 해당 설치는 Storage 연동을 따로 할당하지 않았기 때문에 VM이 재기동 될때, 기존 저장된 로그 데이터는 사라집니다.[1] Github(k8s-1pro)에서 Prometheus(with Grafana), Loki-Stack yaml 다운로드▶ [k8s-master] Console 접속 후 아래 명령 실행 [root@k8s-master ~]# yum -y install git# 로컬 저장소 생성git init monitoringgit config --global init.defaultBranch maincd monitoring# remote 추가 ([root@k8s-master monitoring]#)git remote add -f origin https://github.com/k8s-1pro/.. 2025. 4. 18. 이전 1 2 3 4 5 6 ··· 10 다음