diff --git a/kubernetes/defaults/main.yml b/kubernetes/defaults/main.yml index c34d963..fafd96d 100644 --- a/kubernetes/defaults/main.yml +++ b/kubernetes/defaults/main.yml @@ -18,8 +18,16 @@ kubernetes: token: - # One of [flannel, calico] - network_plugin: calico + network: + # One of [flannel, calico] + plugin: calico + + # Helper for networking + helper: + # https://github.com/Ruakij/RoutingTableToWg + # Translates received-routes from e.g. BGP to wireguard-allowedips + # Helpful, when nodeIp_interface is a wireguard-interface + routingtabletowg: false # One of [traefik-ingress] ingress_controller: traefik-ingress diff --git a/kubernetes/tasks/install/server/install_k3s.yml b/kubernetes/tasks/install/server/install_k3s.yml index b397c51..b4a3076 100644 --- a/kubernetes/tasks/install/server/install_k3s.yml +++ b/kubernetes/tasks/install/server/install_k3s.yml @@ -49,6 +49,7 @@ - name: Deploy calico import_tasks: ./roles/kubernetes/tasks/install/server/network-plugin/deploy_calico.yml + when: "kubernetes.network.plugin == 'calico'" - name: Deploy network-helpers import_tasks: ./roles/kubernetes/tasks/install/server/network-plugin/deploy_network_helper.yml