Skip to content

Commit e45f0c6

Browse files
committed
XXX migrate cluster-vip
1 parent b16823f commit e45f0c6

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

talos.tf

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,13 @@ data "talos_machine_configuration" "controller" {
126126
docs = false
127127
config_patches = [
128128
yamlencode(local.common_machine_config),
129+
// see https://docs.siderolabs.com/talos/v1.12/networking/advanced/vip
130+
// see https://docs.siderolabs.com/talos/v1.12/reference/configuration/network/layer2vipconfig
129131
yamlencode({
130-
machine = {
131-
network = {
132-
interfaces = [
133-
# see https://www.talos.dev/v1.11/talos-guides/network/vip/
134-
{
135-
interface = "eth0"
136-
dhcp = true
137-
vip = {
138-
ip = var.cluster_vip
139-
}
140-
}
141-
]
142-
}
143-
}
132+
apiVersion = "v1alpha1"
133+
kind = "Layer2VIPConfig"
134+
link = "eth0"
135+
name = var.cluster_vip
144136
}),
145137
yamlencode({
146138
cluster = {

0 commit comments

Comments
 (0)