- name: Configure Multus to use Calico as the primary network plugin
lineinfile:
- path: "{{ engine_cache }}/repos/kubespray/inventory/engine/group_vars/k8s-cluster/k8s-cluster.yml"
+ path: "{{ engine_cache }}/repos/kubespray/inventory/engine/group_vars/k8s_cluster/k8s-cluster.yml"
regexp: "^kube_network_plugin:.*"
line: "kube_network_plugin: calico"
- name: Enable the Multus network plugin
lineinfile:
- path: "{{ engine_cache }}/repos/kubespray/inventory/engine/group_vars/k8s-cluster/k8s-cluster.yml"
+ path: "{{ engine_cache }}/repos/kubespray/inventory/engine/group_vars/k8s_cluster/k8s-cluster.yml"
regexp: "^kube_network_plugin_multus:.*"
line: "kube_network_plugin_multus: true"