-
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 17:57 -
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 17:50 -
systemd 를 활용한 오토마운트
systemd unit 생성vi 를 통해 아래와 같이 systemd unit 을 생성하면 auto mount 를 systemd 를 통해 제어할 수 있다.[Unit]Description=Mount for /etc/logsAfter=local-fs-pre.targetBefore=local-fs.target[Mount]What=/dev/mapper/r2-logic_volWhere=/etc/logsType=xfsOptions=defaults[Install]WantedBy=multi-user.target systemd unit 활성화 $ vi /etc/systemd/system/etc-logs.mount$ systemctl daemon-reload$ systemctl enable --now etc-logs.mo..
2025.08.13 17:54 -
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 17:48 -
systemd
journal log 영구적으로 저장root@k8s-master:/run/log/journal# ls -lhd /run/log/journal/drwxr-sr-x+ 2 root systemd-journal 40 Jul 29 16:33 /run/log/journal/root@k8s-master:~# cp -a /run/log/journal/ /var/log/journal/ root@k8s-master:~# ps -C systemd-journald -o comm,pidCOMMAND PIDsystemd-journal 582root@k8s-master:~# kill -USR1 582 root@k8s-master:~# systemctl status systemd-journald● sys..
2025.07.29 17:49