Firewalld service configuration files for Kubernetes hosts
To test on a Kubernetes Master:
- Copy the k8s-master.xml file to the /etc/firewalld/services directory
- Reload the firewall daemon with firewall-cmd --reload
- Add the service to the appropriate zone with firewall-cmd --add-service=k8s-master --zone=public
To test on a Kubernetes Worker:
- Copy the k8s-worker.xml file to the /etc/firewalld/services directory
- Reload the firewall daemon with firewall-cmd --reload
- Add the service to the appropriate zone with firewall-cmd --add-service=k8s-worker --zone=public