summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/base/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-13 20:42:35 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-13 20:42:35 +0100
commit48f5204608f83308ff1de966be8b5400a310a4f6 (patch)
tree277ed1ddb621aca81ae6bba7f569f26dca626a0d /roles/kubernetes/kubeadm/base/tasks/main.yml
parentbase install for ch-(dione|helene) for k8s test (diff)
kubeadm: fixes for 1.23
Diffstat (limited to 'roles/kubernetes/kubeadm/base/tasks/main.yml')
-rw-r--r--roles/kubernetes/kubeadm/base/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml
index 7e48bd5b..56d7f8d2 100644
--- a/roles/kubernetes/kubeadm/base/tasks/main.yml
+++ b/roles/kubernetes/kubeadm/base/tasks/main.yml
@@ -59,5 +59,13 @@
state: present
changed_when: false
+- name: enable IPv4 forwarding
+ sysctl:
+ name: net.ipv4.ip_forward
+ value: '1'
+ sysctl_set: yes
+ state: present
+ reload: yes
+
- name: prepare network plugin
include_tasks: "net_{{ kubernetes_network_plugin }}.yml"