Merge pull request #749 from kubernetes-incubator/azure_ip_forward
Set net.ipv4.ip_forward=1 on all systems, not only on GCE
This commit is contained in:
commit
c09db6cd54
1 changed files with 2 additions and 3 deletions
|
@ -81,7 +81,7 @@
|
||||||
when: cloud_provider is defined and cloud_provider == 'azure'
|
when: cloud_provider is defined and cloud_provider == 'azure'
|
||||||
tags: [cloud-provider, azure, facts]
|
tags: [cloud-provider, azure, facts]
|
||||||
|
|
||||||
- name: Fix ipv4 forward rule in GCE security policy
|
- name: Enable ip forwarding
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sysctl.d/99-sysctl.conf
|
dest: /etc/sysctl.d/99-sysctl.conf
|
||||||
regexp: '^net.ipv4.ip_forward='
|
regexp: '^net.ipv4.ip_forward='
|
||||||
|
@ -90,8 +90,7 @@
|
||||||
create: yes
|
create: yes
|
||||||
backup: yes
|
backup: yes
|
||||||
validate: 'sysctl -f %s'
|
validate: 'sysctl -f %s'
|
||||||
when: cloud_provider is defined and cloud_provider == 'gce'
|
tags: bootstrap-os
|
||||||
tags: [cloud-provider, gce, bootstrap-os]
|
|
||||||
|
|
||||||
- name: Create cni directories
|
- name: Create cni directories
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue