๐Ÿšจ Calico BGP ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…..

๊น€์„ฑ์ธยท2023๋…„ 10์›” 30์ผ
0

[DevOps] ๐ŸณDocker & Kubernetes

๋ชฉ๋ก ๋ณด๊ธฐ
60/62

ํด๋Ÿฌ์Šคํ„ฐ Kubeadm init, join ํ›„

Calico ์„ค์น˜์‹œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ์ด๋‹ค.


 Warning  Unhealthy  16m   kubelet            Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/calico/bird.ctl: connect: connection refused
  Warning  Unhealthy  16m   kubelet            Readiness probe failed: 2023-10-30 08:06:49.135 [INFO][215] confd/health.go 180: Number of node(s) with BGP peering established = 0
calico/node is not ready: BIRD is not ready: BGP not established with 172.31.16.104

Kubernetes ๊ตฌ์„ฑ

https://nvtienanh.info/blog/cai-dat-kubernetes-cluster-tren-ubuntu-server-22-04

calico ์˜ cidr์„ 10.10.0.0/16์œผ๋กœ ๊ตฌ์„ฑํ•˜์˜€์Œ.

์ฒ˜์Œ์— ๋ฌธ์ œ๊ฐ€ ๋ญ”์ง€ ์‹ถ์–ด์„œ

ํ•ด๋‹น ํฌ์ŠคํŒ…์„ ๋ณด๊ณ  ๋ฐฉํ™”๋ฒฝ ์˜คํ”ˆ์ด ํ•„์š”ํ•˜๋‹ค๊ณ  ํ•ด์„œ ์ผ๋‹จ ํฌํŠธ๋ฅผ ๊ฐœ๋ฐฉํ•จ.
https://velog.io/@koo8624/Kubernetes-Calico-Error-caliconode-is-not-ready-BIRD-is-not-ready-BGP-not-established

๋„คํŠธ์›Œํฌ nic๊ฐ€ ec2์ธ์Šคํ„ด์Šค์— ์—ฌ๋Ÿฌ๊ฐœ ์กด์žฌํ•˜๋Š”์ง€ ์ž˜๋ชจ๋ฅด๊ฒ ๋‹ค..
๊ทธ๋ž˜๋„ ํ˜น์‹œ๋‚˜ ํ•˜๋Š” ๋งˆ์Œ์— nic๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋„๋ก daemonset์˜ ๋ณ€์ˆ˜๋ฅผ ์ˆ˜์ •ํ•˜์˜€์Œ.
https://velog.io/@numerok/caliconode-is-not-ready-BIRD-is-not-ready-BGP-not-established-with

์ฐธ๊ณ :
https://www.skyer9.pe.kr/wordpress/?p=7416


ํ•ด๊ฒฐ?

Bird Daemon ํ”„๋กœ์„ธ์Šค๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š๋Š” ๊ฑด๊ฐ€ ์‹ถ์–ด์„œ
sudo systemctl status bird
sudo systemctl restart bird
๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฒ„๋“œ๋ฅผ ํ™•์ธํ•˜์˜€์Œ.

๊ทธ๋Ÿฌ๊ณ  ๋‚˜์„ฏ ๋‹ค์‹œ kube-system ๋„ค์ž„ ์ŠคํŽ˜์ด์Šค์˜ ์ปดํฌ๋„ŒํŠธ๋“ค์„ ๋ชจ๋‘ ํ™•์ธํ•ด๋ณด๋‹ˆ ready ์ƒํƒœ๊ฐ€ 0/1์—์„œ 1/1๋กœ ๋ฐ”๊ท€์—ˆ๋‹ค (calico-node)

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  16m                default-scheduler  Successfully assigned kube-system/calico-node-5h5lb to ip-172-31-16-104
  Normal   Pulled     16m                kubelet            Container image "docker.io/calico/cni:v3.25.0" already present on machine
  Normal   Created    16m                kubelet            Created container upgrade-ipam
  Normal   Started    16m                kubelet            Started container upgrade-ipam
  Normal   Pulled     16m                kubelet            Container image "docker.io/calico/cni:v3.25.0" already present on machine
  Normal   Created    16m                kubelet            Created container install-cni
  Normal   Started    16m                kubelet            Started container install-cni
  Normal   Pulled     16m                kubelet            Container image "docker.io/calico/node:v3.25.0" already present on machine
  Normal   Created    16m                kubelet            Created container mount-bpffs
  Normal   Started    16m                kubelet            Started container mount-bpffs
  Normal   Pulled     16m                kubelet            Container image "docker.io/calico/node:v3.25.0" already present on machine
  Normal   Created    16m                kubelet            Created container calico-node
  Normal   Started    16m                kubelet            Started container calico-node
  Warning  Unhealthy  16m (x2 over 16m)  kubelet            Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/calico/bird.ctl: connect: connection refused
  Warning  Unhealthy  16m                kubelet            Readiness probe failed: 2023-10-30 08:39:29.117 [INFO][218] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: BIRD is not ready: BGP not established with 172.31.7.96
  Warning  Unhealthy  16m  kubelet  Readiness probe failed: 2023-10-30 08:39:39.167 [INFO][239] confd/health.go 180: Number of node(s) with BGP peering established = 1
calico/node is not ready: BIRD is not ready: BGP not established with 172.31.31.33

describe ํ–ˆ์„ ๋•Œ ์—ฌ์ „ํžˆ ์ด๋ฒคํŠธ์— ์—๋Ÿฌ ๋กœ๊ทธ๊ฐ€ ๋‚จ์•„์žˆ์ง€๋งŒ ์ผ๋‹จ ์ •์ƒ ์‹คํ–‰๋จ..

profile
๊ฐœ๋ฐœ์ž๊ฐ€ ๊ฟˆ์ธ 25์‚ด ๋Œ€ํ•™์ƒ์ž…๋‹ˆ๋‹ค.

0๊ฐœ์˜ ๋Œ“๊ธ€