Closed xiaods closed 2 years ago
root@ubuntu-08:~# kubectl get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system cilium-operator-865c67cfff-tpsxp 1/1 Running 1 18m
kube-system cilium-zj8h5 1/1 Running 1 18m
kube-system coredns-574bcc6c46-k2ggk 0/1 Running 6 18m
kube-system local-path-provisioner-84bb864455-tllt4 0/1 Error 8 18m
kube-system metrics-server-b55c49795-8hzxd 0/1 Running 8 18m
root@ubuntu-08:~# kubectl logs coredns-574bcc6c46-k2ggk -n kube-system
[INFO] SIGTERM: Shutting down servers then terminating
[WARNING] plugin/kubernetes: Kubernetes API connection failure: Get "https://10.43.0.1:443/version": dial tcp 10.43.0.1:443: i/o timeout
cat /etc/sysctl.d/99-override_cilium_rp_filter.conf
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.*.rp_filter = 0
it works
k8e default bypass iptables and conntrack
cilium 提供了Ubuntu20.04 修复代码 https://github.com/cilium/cilium/blob/master/tools/sysctlfix/main.go