fix(cilium): use cilium lb

This commit is contained in:
Timothy Stewart
2024-07-27 14:24:03 -05:00
parent 15e97bad1d
commit 7239c927de

View File

@@ -251,7 +251,7 @@
label: "{{ item }}"
- name: Configure Cilium Load Balancer
when: kube_vip_lb_ip_range is not defined and (cilium_bgp is not defined or cilium_iface is not defined)
when: cilium_iface
block:
- name: Copy Load Balancer manifests to first master
ansible.builtin.template:
@@ -261,7 +261,7 @@
group: root
mode: 0755
- name: Apply BGP manifests
- name: Apply LB manifests
ansible.builtin.command:
cmd: kubectl apply -f /tmp/k3s/cilium-lb.yaml
register: apply_cr
@@ -269,7 +269,7 @@
failed_when: "'is invalid' in apply_cr.stderr"
ignore_errors: true
- name: Print error message if BGP manifests application fails
- name: Print error message if LB manifests application fails
ansible.builtin.debug:
msg: "{{ apply_cr.stderr }}"
when: "'is invalid' in apply_cr.stderr"