K8s Cluster Networking: The ports used and why.
Kubernetes can be complex to set up and has many ports that need to be active for fruitful networking.
Kubernetes can be complex to set up, in particular its networking and security. There are many moving pieces in Kubernetes and they all require an ability to communicate with each other. One of my biggest challenges learning about Kubernetes revolved around understanding which ports were to be used (or were provided to me by Kubernetes itself) and who would be using them.
A visual guide to ports being used in a Kubernetes Cluster
![](https://hestia.ghost.io/content/images/2023/04/image-107.png)
🧮
Having an idea of which ports are in used and by which component can be used to design additional firewall rules inside the cluster.
I write to remember and if in the process, I can help someone learn about Containers, Orchestration (Docker Compose, Kubernetes), GitOps, DevSecOps, VR/AR, Architecture, and Data Management, that is just icing on the cake.