k8s(40)
-
metric server 설치
설치방법kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml설치방법은 명령어 한 줄이면 간단하게 된다.하지만 이것만 하게 되면 metric-server 파드가 안 뜨는 경우가 대부분일 것이라 예상된다. Trouble Shooting1# 파드에서의 event log: Warning Unhealthy 2s (x9 over 79s) kubelet Readiness probe failed: HTTP probe failed with statuscode: 500 # 파드 내 log:I0902 07:17:06.198231 1 server.g..
2025.09.02 -
node join 및 delete
아래와 같은 k8s 클러스터에 노드를 조인해보자.[root@k8s-control ~]# k get node -o wideNAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIMEk8s-compute1 Ready 26d v1.32.7 10.0.2.12 Rocky Linux 10.0 (Red Quartz) 6.12.0-55.22.1.el10_0.x86_64 cri-o://1.30.14k8s-compute2 Re..
2025.08.28 -
ansible 을 활용한 k8s 클러스터 구축
초기 구성 OSCPUMemorydiskk8s-controlRocky-10.0-x86_64-minimal4core8Gi20Gik8s-compute1Rocky-10.0-x86_64-minimal4core8Gi20Gik8s-compute2Rocky-10.0-x86_64-minimal4core8Gi20Gi이때 ansible 이 원활히 작동하도록 hostname 설정 후, ssh-copy-id 모두 실시함 (k8s-control 에서 3대 모두 실시)그리고 /etc/hosts 파일에 모두 서버 정보 3대 모두 입력 github sourcehttps://github.com/cody-manupul/IaC GitHub - cody-manupul/IaC: create k8s cluster by ansiblecreate..
2025.08.01 -
PV 테스트
참고 사이트https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes Persistent VolumesThis document describes persistent volumes in Kubernetes. Familiarity with volumes, StorageClasses and VolumeAttributesClasses is suggested. Introduction Managing storage is a distinct problem from managing compute instances. The PersistentVolume subsystemkubernetes.io 개요아래와 같이 nfs 로 제공되는 pv 및 h..
2025.07.15 -
Prometheus 와 Grafana 설치
helm 을 사용해 간단히 설치해보자 한다. 1. helm repository 등록helm repo add prometheus-community https://prometheus-community.github.io/helm-chartshelm repo update 2. namespace 생성kubectl create ns monitoring 3. Prometheus 와 Grafana 설치helm install prometheus-stack prometheus-community/kube-prometheus-stack \ --namespace monitoring 4. Grafana 의 admin 계정 password 확인kubectl --namespace monitoring get secrets pr..
2025.07.11 -
Pod Garbage Collector
참고문서https://kubernetes.io/ko/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection 파드 라이프사이클이 페이지에서는 파드의 라이프사이클을 설명한다. 파드는 정의된 라이프사이클을 따른다. Pending 단계에서 시작해서, 기본 컨테이너 중 적어도 하나 이상이 OK로 시작하면 Running 단계를 통과하kubernetes.io Pod Garbage Collector실패한 파드의 경우, API 오브젝트는 사람이나 컨트롤러 프로세스가 명시적으로 파드를 제거할 때까지 클러스터의 API에 남아 있다. 이를 자동으로 해결해주는 것이 Pod Garbage Collector 라고 한다. 아래와 같이 이는 kube-controller..
2025.07.10