DevOps/Kubernetes 4

쿠버네티스 자주 사용하는 트러블 슈팅 명령어

// kubelet 상태 확인1) systemctl status kubelet // systemctl (restart or start) kubelet2) journalctl -u kubelet | tail -10// 상태 확인 -> 상세 로그 확인 -> 10분 구글링 -> VM 재기동 -> Cluster 재설치 -> 답을 찾을 때 까지 구글링// containerd 상태 확인1) systemctl status containerd2) journalctl -u containerd | tail -10// 노드 상태 확인1) kubectl get nodes -o wide2) kubectl describe node k8s-master// Pod 상태 확인1) kubectl get pods -A -o ..

DevOps/Kubernetes 2024.09.27

Errors during downloading metadata for repository 'kubernetes'

검색 도중 아래와 같은 내용을 찾았습니다.  https://ssnotebook.tistory.com/entry/KubernetesCentOSRHEL-Errors-during-downloading-metadata-for-repository-kubernetes  [Kubernetes] Errors during downloading metadata for repository 'kubernetes'쿠버네티스 클러스터의 노드에서 타 패키지를 이용하고자 yum으로 설치하려고 하는 중 아래와 같은 에러가 발생했다. 내용으로 보았을 때, 쿠버네티스 패키지를 설치하기 위해서 등록했던 쿠버ssnotebook.tistory.com 2023년 8월 15일, 쿠버네티스 프로젝트는 에서 제공되는 Debian 및 RPM 패키지에 ..

DevOps/Kubernetes 2024.09.23

k8s 싱글 클러스터 설치하기 ( 마스터, 노드 )

단일 환경으로 설치 했지만 추후에 마스터 물리서버 , 워커 노드 물리서버 join 하는것까지 작성할 예정이다. 이정도로 쿠버네티스를 겉할기 식이지만 먼저 작성 해본다. OS는 레드 햇 계열 Locky-linux-8 이다.  1. Rocky Linux 설치 [stay0073@instance-20240923-022845 ~]sudo yum -y update  2. 타임존 설정 확인[stay0073@instance-20240923-022845 ~]$ timedatectl  만약 Time zone이 Asia/Seoul 이 아니라면 다음과 같이 실행sudo timedatectl set-timezone Asia/Seoul   3. kubeadm 설치 전 사전작업 방화벽 해제 systemctl stop firewal..

DevOps/Kubernetes 2024.09.23