diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-05-16 20:44:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-05-16 20:44:28 +0200 |
commit | 823c9dff3b9b89bd6a8be0186c8302286e743ae1 (patch) | |
tree | a12fa347796e1575d5e16f6a9be59c4553e14caf /roles/kubernetes/kubeadm/base/tasks/main.yml | |
parent | cosmetic fixes (diff) |
kubernetes: implement kube-proxy in ipvs mode
Diffstat (limited to 'roles/kubernetes/kubeadm/base/tasks/main.yml')
-rw-r--r-- | roles/kubernetes/kubeadm/base/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml index 75c1187a..e339fbcb 100644 --- a/roles/kubernetes/kubeadm/base/tasks/main.yml +++ b/roles/kubernetes/kubeadm/base/tasks/main.yml @@ -72,3 +72,14 @@ - name: prepare network plugin include_tasks: "net_{{ kubernetes_network_plugin }}.yml" + +- name: install extra packages for kube-proxy ipvs mode + when: + - not kubernetes_network_plugin_replaces_kube_proxy + - kubernetes_kube_proxy_mode is defined + - kubernetes_kube_proxy_mode == 'ipvs' + apt: + name: + - ipvsadm + - ipset + state: present |