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:
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 }}
|
peerASN: {{ distribution.talos.bgp.peer_asn }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if nodes.default_gateway %}
|
||||||
|
- peerAddress: "{{ nodes.default_gateway }}/32"
|
||||||
|
{% else %}
|
||||||
- peerAddress: "{{ nodes.host_network | nthhost(1) }}/32"
|
- peerAddress: "{{ nodes.host_network | nthhost(1) }}/32"
|
||||||
|
{% endif %}
|
||||||
peerASN: {{ distribution.talos.bgp.peer_asn }}
|
peerASN: {{ distribution.talos.bgp.peer_asn }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
serviceSelector:
|
serviceSelector:
|
||||||
|
|||||||
@@ -50,7 +50,11 @@ nodes:
|
|||||||
mtu: 1500
|
mtu: 1500
|
||||||
routes:
|
routes:
|
||||||
- network: 0.0.0.0/0
|
- network: 0.0.0.0/0
|
||||||
|
{% if nodes.default_gateway %}
|
||||||
|
gateway: "{{ nodes.default_gateway }}"
|
||||||
|
{% else %}
|
||||||
gateway: "{{ nodes.host_network | nthhost(1) }}"
|
gateway: "{{ nodes.host_network | nthhost(1) }}"
|
||||||
|
{% endif %}
|
||||||
{% if item.controller %}
|
{% if item.controller %}
|
||||||
vip:
|
vip:
|
||||||
ip: "{{ cluster.endpoint_vip }}"
|
ip: "{{ cluster.endpoint_vip }}"
|
||||||
@@ -61,7 +65,11 @@ nodes:
|
|||||||
mtu: 1500
|
mtu: 1500
|
||||||
routes:
|
routes:
|
||||||
- network: 0.0.0.0/0
|
- network: 0.0.0.0/0
|
||||||
|
{% if nodes.default_gateway %}
|
||||||
|
gateway: "{{ nodes.default_gateway }}"
|
||||||
|
{% else %}
|
||||||
gateway: "{{ nodes.host_network | nthhost(1) }}"
|
gateway: "{{ nodes.host_network | nthhost(1) }}"
|
||||||
|
{% endif %}
|
||||||
{% if item.controller %}
|
{% if item.controller %}
|
||||||
vip:
|
vip:
|
||||||
ip: "{{ cluster.endpoint_vip }}"
|
ip: "{{ cluster.endpoint_vip }}"
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ distribution:
|
|||||||
# loadbalancer_network: 10.123.0.0/16
|
# loadbalancer_network: 10.123.0.0/16
|
||||||
# secureboot:
|
# secureboot:
|
||||||
# # (Optional) Enable secureboot on UEFI systems. Not supported on x86 platforms in BIOS mode.
|
# # (Optional) Enable secureboot on UEFI systems. Not supported on x86 platforms in BIOS mode.
|
||||||
|
# # If you want to use this. Please make sure to boot from secureboot ISO and enroll keys first.
|
||||||
# # See: https://www.talos.dev/latest/talos-guides/install/bare-metal-platforms/secureboot
|
# # See: https://www.talos.dev/latest/talos-guides/install/bare-metal-platforms/secureboot
|
||||||
# enabled: true
|
# enabled: true
|
||||||
# # (Optional) Enable TPM-based disk encryption. Requires TPM 2.0
|
# # (Optional) Enable TPM-based disk encryption. Requires TPM 2.0
|
||||||
@@ -53,6 +54,8 @@ timezone: ""
|
|||||||
nodes:
|
nodes:
|
||||||
# (Required) CIDR your nodes are on (e.g. 192.168.1.0/24)
|
# (Required) CIDR your nodes are on (e.g. 192.168.1.0/24)
|
||||||
host_network: ""
|
host_network: ""
|
||||||
|
# (Optional) Talos only: If your gateway is not on the .1 address of above CIDR you can set it here (e.g. 192.168.1.254)
|
||||||
|
default_gateway: ""
|
||||||
# (Optional) The DNS server to use for the cluster, this can be an existing
|
# (Optional) The DNS server to use for the cluster, this can be an existing
|
||||||
# local DNS server or a public one.
|
# local DNS server or a public one.
|
||||||
# Default is ["1.1.1.1", "1.0.0.1"]
|
# Default is ["1.1.1.1", "1.0.0.1"]
|
||||||
|
|||||||
Reference in new issue
Block a user