Needed ports for Kubernetes cluster

Erwin picture Erwin · Sep 2, 2016 · Viewed 36.1k times · Source

Suppose I want to create a k8s cluster on bare metal servers, with 1 master and 2 nodes. What ports do I have to open in my firewall so that the master and nodes can communicate over the Internet? (I know I can just use VPN, but I just want to know which ports I need). I guess I need at least the following ports. Do I need more? How about if I'm using Flannel or Calico? I want to create a comprehensive list of all possible k8s services and needed ports. Thank you.

kubectl - 8080

ui - 80 or 443 or 9090

etcd - 2379, 2380

Answer

Julien Du Bois picture Julien Du Bois · Sep 13, 2016

the ports for kubernetes are the following:

enter image description here

from the CoreOS docs.