今天搭建kubernetes集群,使用calico作为CNI,但是发现pod一直没有初始化:
ubuntu@perf-test-0:~/yiwei/performance_test$ kbctl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-676c4cbdf-zl6gr 1/1 Running 0 26s
kube-system calico-node-bznhp 0/1 Running 0 28s
kube-system calico-node-stwcs 0/1 Running 0 28s
查看pod日志,发现两个节点之间没有建立BGP连接:
ubuntu@perf-test-0:~/yiwei/performance_test$ kbctl describe pod calico-node-bznhp -n kube-system
=========