Merge pull request #680 from kubernetes-incubator/gce_ipv4_forward
Fix ipv4 forwarding on GCE
This commit is contained in:
commit
d40783022b
1 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,17 @@
|
||||||
- include: azure-credential-check.yml
|
- include: azure-credential-check.yml
|
||||||
when: cloud_provider is defined and cloud_provider == 'azure'
|
when: cloud_provider is defined and cloud_provider == 'azure'
|
||||||
|
|
||||||
|
- name: Fix ipv4 forward rule in GCE security policy
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/sysctl.d/11-gce-network-security.conf
|
||||||
|
regexp: '^net.ipv4.ip_forward='
|
||||||
|
line: 'net.ipv4.ip_forward=1'
|
||||||
|
state: present
|
||||||
|
create: yes
|
||||||
|
backup: yes
|
||||||
|
validate: 'sysctl -f %s'
|
||||||
|
when: cloud_provider is defined and cloud_provider == 'gce'
|
||||||
|
|
||||||
- name: Create cni directories
|
- name: Create cni directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
Loading…
Reference in a new issue