terraform-k8s/roles/kubernetes/tasks/firewalld.yml

36 lines
653 B
YAML

---
########################
#### FIREWALL TASKS ####
########################
## kubernetes requirements
- name: enable port 6443/tcp
firewalld:
port: 6443/tcp
permanent: yes
state: enabled
- name: enable port 10250/tcp
firewalld:
port: 10250/tcp
permanent: yes
state: enabled
- name: enable port 6443/udp
firewalld:
port: 6443/udp
permanent: yes
state: enabled
- name: enable port 10250/udp
firewalld:
port: 10250/udp
permanent: yes
state: enabled
## reload firewalld after setting rules
- name: reload firewalld
shell: firewall-cmd --reload