Skip to content

Commit 9b9f90f

Browse files
authored
Merge pull request #362 from markllama/scaling-flannel
add iptables rules to scale up
2 parents 4315856 + 15f5e0c commit 9b9f90f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/var/lib/ansible/playbooks/scaleup.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/playbooks/scal
1616
shell: iptables -A DOCKER -p tcp -j ACCEPT
1717
when: openshift_use_flannel
1818

19+
- name: Set up masquerading on flannel interface
20+
shell: iptables -t nat -A POSTROUTING -o {{ flannel_interface }} -j MASQUERADE
21+
when: openshift_use_flannel
22+
23+
- name: Make iptables rule permanent
24+
shell: /usr/libexec/iptables/iptables.init save
25+
when: openshift_use_flannel
26+
1927
- hosts: new_nodes
2028
sudo: yes
2129
tasks:

0 commit comments

Comments
 (0)