Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default value for k3s_node_ip #222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions all/099-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ systemd_dir: /etc/systemd/system
# The IP on which the node is reachable in the cluster.
# Here, a sensible default is provided, you can still override
# it for each of your hosts, though.
k3s_node_ip: "{{ ansible_facts[k3s_interface]['ipv4']['address'] | default('127.0.0.1') }}"
k3s_node_ip: "{{ hostvars[inventory_hostname]['ansible_' + k3s_interface|default(internal_interface)]['ipv4']['address'] }}"

# Disable the taint manually by setting: k3s_master_taint = false
k3s_master_taint: "{{ true if groups['k3s_node'] | default([]) | length >= 1 else false }}"
Expand All @@ -44,7 +44,7 @@ kube_proxy_replacement: true

# kube-vip

kube_vip_bgp_routerid: "{{ ansible_facts[k3s_interface]['ipv4']['address'] | default('127.0.0.1') }}"
kube_vip_bgp_routerid: "{{ k3s_node_ip }}"
kube_vip_bgp_as: "64513"
kube_vip_bgp_peeraddress: "{{ frr_loopback_v4 | default('127.0.0.1') }}"
kube_vip_bgp_peeras: "{{ frr_local_as | default('64512') }}"
Expand Down