feat(talos): Add option to specify other gateway (#1316)

* feat(talos): Add option to specify other gateway

* Renamed to default_gateway and add BGP config

* Update config.sample.yaml

---------

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
Wouter BouvyandDevin Buhl authored and GitHub committed 2024-02-13 15:04:56 -05:00
1 parent 7eac552cd6
commit 89559608b2
3 files changed
+15

No files matched your search

@@ -17,7 +17,11 @@ spec:
peerASN: {{ distribution.talos.bgp.peer_asn }}
{% endfor %}
{% else %}
{% if nodes.default_gateway %}
- peerAddress: "{{ nodes.default_gateway }}/32"
{% else %}
- peerAddress: "{{ nodes.host_network | nthhost(1) }}/32"
{% endif %}
peerASN: {{ distribution.talos.bgp.peer_asn }}
{% endif %}
serviceSelector: