728x90
SMALL
1. 글을 쓰게 된 계기
현재는 해결되어서 위와 같은 상황이지만,
이전에는 1개의 노드에 대해서 안되는 이슈가 있었습니다.
serviceMonitor/monitoring/prometheus-prometheus-node-exporter/0 (3/3 up)
그래서 이를 해결하는 방법을 정리해놓고자 합니다.
2. 해결 방법
calicoctl get node super -o yaml
spec:
addresses:
- address: 192.168.0.8/24
type: CalicoNodeIP
- address: 192.168.0.50
type: InternalIP
bgp:
ipv4Address: 192.168.0.8/24
ipv4IPIPTunnelAddr: 192.168.78.192
다음과 같이 나왔는데
연결이 되지 않았던 이유가 주소가 잘못되었기 때문에 나왔던 이슈였습니다.
따라서
노드에서 calico 설정을 올바르게 변경할 수 있도록 수정해주었습니다.
(+ 현재 실행중인 Pod들도 있었기 때문에 멈추지 않고 수정될 수 있도록 설정했습니다.)
calicoctl patch node super --patch='{
"spec": {
"addresses": [
{
"address": "192.168.0.50/24",
"type": "CalicoNodeIP"
}
],
"bgp": {
"ipv4Address": "192.168.0.50/24"
}
}
}' --type=merge
변경 적용 후 확인
calicoctl get node -o wide
calicoctl node status
728x90
LIST
'Come on IT > DevOps' 카테고리의 다른 글
prometheus-kube-prometheus-kube-controller-manager/0 해결방법 (0) | 2025.02.26 |
---|---|
K8s 워커노드 추가하는 방법 (0) | 2025.02.14 |
bpf_jit 증가에 따른 seccomp 오류 해결 방법 (error loading seccomp filter) (0) | 2025.01.04 |
K8s namespace가 deleted 안될 때 (feat. monitoring) (0) | 2024.10.14 |
Prometheus 및 Grafana 설치 (feat. 쿠베네티스) (1) | 2024.10.07 |