mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-12 05:50:18 +01:00
Merge pull request #60 from networkpanic/feature/rpi-cluster
add advertise_ip support
This commit is contained in:
commit
1f74a599ee
3 changed files with 5 additions and 1 deletions
|
@ -222,6 +222,7 @@ Below are variables that are set against specific hosts in your inventory.
|
|||
| `k3s_node_name` | Define the name of this node. | `$(hostname)` |
|
||||
| `k3s_node_id` | Define the ID of this node. | _NULL_ |
|
||||
| `k3s_flannel_interface` | Define the flannel proxy interface for this node. | _NULL_ |
|
||||
| `k3s_advertise_address` | Define the advertise address for this node. | _NULL_ |
|
||||
| `k3s_bind_address` | Define the bind address for this node. | localhost |
|
||||
| `k3s_node_ip_address` | IP Address to advertise for this node. | _NULL_ |
|
||||
| `k3s_node_external_address` | External IP Address to advertise for this node. | _NULL_ |
|
||||
|
|
|
@ -80,7 +80,7 @@ k3s_use_docker: false
|
|||
# Disable flannel, you will need to install your own CNI driver.
|
||||
k3s_no_flannel: false
|
||||
|
||||
# Flannel backend ('none', 'vxlan', 'ipsec', or 'wireguard')
|
||||
# Flannel backend ('none', 'vxlan', 'ipsec', 'host-gw' or 'wireguard')
|
||||
# k3s_flannel_backend: vxlan
|
||||
|
||||
# Disable CoreDNS, you will need to install your own DNS provider.
|
||||
|
|
|
@ -19,6 +19,9 @@ ExecStart={{ k3s_install_dir }}/k3s
|
|||
{% if k3s_bind_address is defined %}
|
||||
--bind-address {{ k3s_bind_address }}
|
||||
{% endif %}
|
||||
{% if k3s_advertise_address is defined %}
|
||||
--advertise-address {{ k3s_advertise_address }}
|
||||
{% endif %}
|
||||
{% if k3s_non_root is defined and k3s_non_root %}
|
||||
--rootless
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue