Skip to content

Commit 5a7fbfd

Browse files
committed
Add init patches back
1 parent a429891 commit 5a7fbfd

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

examples/templates/kubevirt-talos/cluster.tf

+42
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,48 @@ resource "kubernetes_manifest" "taloscontrolplane_talos_em_control_plane" {
269269
]
270270
"generateType" = "controlplane"
271271
}
272+
"init" = {
273+
"configPatches" = [
274+
{
275+
"op" = "replace"
276+
"path" = "/machine/install"
277+
"value" = {
278+
"bootloader" = true
279+
"disk" = "/dev/vda"
280+
"image" = "ghcr.io/siderolabs/installer:v1.2.4"
281+
"wipe" = false
282+
"extraKernelArgs" = ["console=ttyS0"]
283+
}
284+
},
285+
{
286+
"op" = "add"
287+
"path" = "/machine/kubelet/extraArgs"
288+
"value" = {
289+
"cloud-provider" = "external"
290+
}
291+
},
292+
{
293+
"op" = "add"
294+
"path" = "/cluster/apiServer/extraArgs"
295+
"value" = {
296+
"cloud-provider" = "external"
297+
}
298+
},
299+
{
300+
"op" = "add"
301+
"path" = "/cluster/controllerManager/extraArgs"
302+
"value" = {
303+
"cloud-provider" = "external"
304+
}
305+
},
306+
{
307+
"op" = "add"
308+
"path" = "/cluster/allowSchedulingOnMasters"
309+
"value" = true
310+
},
311+
]
312+
"generateType" = "init"
313+
}
272314
}
273315
"infrastructureTemplate" = {
274316
"apiVersion" = "infrastructure.cluster.x-k8s.io/v1alpha1"

0 commit comments

Comments
 (0)