├── README.md
├── k8s-master.xml
└── k8s-worker.xml
/README.md:
--------------------------------------------------------------------------------
1 | # k8s-firewalld
2 | Firewalld service configuration files for Kubernetes hosts
3 |
4 | To test on a Kubernetes Master:
5 |
6 | - Copy the k8s-master.xml file to the /etc/firewalld/services directory
7 | - Reload the firewall daemon with firewall-cmd --reload
8 | - Add the service to the appropriate zone with firewall-cmd --add-service=k8s-master --zone=public
9 |
10 |
11 |
12 | To test on a Kubernetes Worker:
13 |
14 | - Copy the k8s-worker.xml file to the /etc/firewalld/services directory
15 | - Reload the firewall daemon with firewall-cmd --reload
16 | - Add the service to the appropriate zone with firewall-cmd --add-service=k8s-worker --zone=public
17 |
18 |
19 |
--------------------------------------------------------------------------------
/k8s-master.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Kubernetes Master
4 | Ports required for a Kubernetes Master node per https://kubernetes.io/docs/setup/independent/install-kubeadm/.
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/k8s-worker.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Kubernetes Worker
4 | Ports required for a Kubernetes Worker node per https://kubernetes.io/docs/setup/independent/install-kubeadm/.
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------