feat: Talos network vlan tagging (#1282)

* feat: Add talos management vlan

* feat: talos vlan example in config.yaml
This commit is contained in:
Wasurerarenai authored and GitHub committed 2024-02-01 06:51:06 -05:00
1 parent 03125bf9c6
commit 6cb24b86c1
2 files changed
+18

No files matched your search

@@ -35,6 +35,20 @@ nodes:
networkInterfaces:
- interface: eth0
dhcp: false
{% if cluster.nodes.talos.vlan %}
vlans:
- vlanId: {{ cluster.nodes.talos.vlan }}
addresses:
- "{{ item.address }}/{{ cluster.nodes.host_network.split('/') | last }}"
mtu: 1500
routes:
- network: 0.0.0.0/0
gateway: "{{ cluster.nodes.host_network | nthhost(1) }}"
{% if item.controller %}
vip:
ip: "{{ cluster.endpoint_vip }}"
{% endif %}
{% else %}
addresses:
- "{{ item.address }}/{{ cluster.nodes.host_network.split('/') | last }}"
mtu: 1500
@@ -45,6 +59,7 @@ nodes:
vip:
ip: "{{ cluster.endpoint_vip }}"
{% endif %}
{% endif %}
{% endfor %}
controlPlane: