diff --git a/ansible/gesis.yml b/ansible/gesis.yml index bfe6774cc..b26cdb02d 100644 --- a/ansible/gesis.yml +++ b/ansible/gesis.yml @@ -9,7 +9,10 @@ gather_facts: false become: true roles: - - k8s-control-panel + - role: k8s-control-panel + vars: + k8s_control_panel_addresses_begin: '{{ K8S_INGRESS }}' + k8s_control_panel_addresses_end: '{{ K8S_INGRESS }}' - name: Configure Kubernetes workers hosts: kubernetes_workers gather_facts: false diff --git a/ansible/roles/k8s-control-panel/tasks/metallb.yml b/ansible/roles/k8s-control-panel/tasks/metallb.yml index 1f0bbd8e7..b7b496cb8 100644 --- a/ansible/roles/k8s-control-panel/tasks/metallb.yml +++ b/ansible/roles/k8s-control-panel/tasks/metallb.yml @@ -37,7 +37,7 @@ spec: addresses: # TODO Use Jinja filter to automate this. - - "{{ K8S_INGRESS }}-{{ K8S_INGRESS }}" + - "{{ k8s_control_panel_addresses_begin }}-{{ k8s_control_panel_addresses_end }}" - name: Configure L2 Advertisement for MetalLB kubernetes.core.k8s: state: present diff --git a/ansible/roles/k8s-control-panel/vars/main.yml b/ansible/roles/k8s-control-panel/vars/main.yml index b22109826..31cfa853d 100644 --- a/ansible/roles/k8s-control-panel/vars/main.yml +++ b/ansible/roles/k8s-control-panel/vars/main.yml @@ -3,3 +3,5 @@ k8s_control_panel_cidr: "10.244.0.0/16" k8s_control_panel_metallb_version: 0.14.9 k8s_control_panel_metallb_ip_address_pool_name: "gesis" k8s_control_panel_ingress_nginx_version: 4.12.0 +k8s_control_panel_addresses_begin: 0.0.0.0 +k8s_control_panel_addresses_end: 0.0.0.0