mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-29 04:02:38 +01:00
fix(cilium): use cilium lb
This commit is contained in:
@@ -251,7 +251,7 @@
|
|||||||
label: "{{ item }}"
|
label: "{{ item }}"
|
||||||
|
|
||||||
- name: Configure Cilium Load Balancer
|
- 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:
|
block:
|
||||||
- name: Copy Load Balancer manifests to first master
|
- name: Copy Load Balancer manifests to first master
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Apply BGP manifests
|
- name: Apply LB manifests
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: kubectl apply -f /tmp/k3s/cilium-lb.yaml
|
cmd: kubectl apply -f /tmp/k3s/cilium-lb.yaml
|
||||||
register: apply_cr
|
register: apply_cr
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
failed_when: "'is invalid' in apply_cr.stderr"
|
failed_when: "'is invalid' in apply_cr.stderr"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Print error message if BGP manifests application fails
|
- name: Print error message if LB manifests application fails
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ apply_cr.stderr }}"
|
msg: "{{ apply_cr.stderr }}"
|
||||||
when: "'is invalid' in apply_cr.stderr"
|
when: "'is invalid' in apply_cr.stderr"
|
||||||
|
|||||||
Reference in New Issue
Block a user