開啓 Firewalld(防火牆) 下需要注意的事

端口的開放

  以下摘自官方文檔

Master node(s)

Protocol Direction Port Range Purpose Used By
TCP Inbound 6443* Kubernetes API server All
TCP Inbound 2379-2380 etcd server client API kube-apiserver, etcd
TCP Inbound 10250 Kubelet API Self, Control plane
TCP Inbound 10251 kube-scheduler Self
TCP Inbound 10252 kube-controller-manager Self

Worker node(s)

Protocol Direction Port Range Purpose Used By
TCP Inbound 10250 Kubelet API Self, Control plane
TCP Inbound 30000-32767 NodePort Services** All

開啓 Firewalld 的僞裝 ip

  如果不開啓此功能,那將無法進行 ip 轉發,會導致 DNS 插件不起作用。

$ firewall-cmd --zone=public --add-masquerade --permanent
$ firewall-cmd --reload
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章