This commit is contained in:
root
2026-02-27 22:52:01 +00:00
parent b4ded089ee
commit 9401cae403
3 changed files with 435 additions and 1947 deletions

View File

@@ -156,7 +156,8 @@ resource "proxmox_virtual_environment_vm" "flatcar_template" {
stop_on_destroy = true stop_on_destroy = true
description = "managed by terraform - base template for flatcar" description = "managed by terraform - base template for flatcar"
tags = ["flatcar","kubernetes","terraform"] tags = ["flatcar","kubernetes","terraform"]
vm_id = 999
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
boot_order, boot_order,
@@ -308,7 +309,8 @@ resource "proxmox_virtual_environment_vm" "control_plane1" {
description = "kubernetes control-plane1" description = "kubernetes control-plane1"
tags = ["control-plane","flatcar","kubernetes","terraform"] tags = ["control-plane","flatcar","kubernetes","terraform"]
depends_on = [proxmox_virtual_environment_file.control_plane1_ignition] depends_on = [proxmox_virtual_environment_file.control_plane1_ignition]
boot_order = ["virtio0"] boot_order = ["virtio0"]
vm_id = 1001
startup { startup {
order = "1" order = "1"
@@ -346,6 +348,7 @@ resource "proxmox_virtual_environment_vm" "control_plane1" {
resource "proxmox_virtual_environment_vm" "control_plane2" { resource "proxmox_virtual_environment_vm" "control_plane2" {
name = "control-plane2" name = "control-plane2"
vm_id = 1002
node_name = "hyper2" node_name = "hyper2"
description = "kubernetes control-plane2" description = "kubernetes control-plane2"
tags = ["control-plane","flatcar","kubernetes","terraform"] tags = ["control-plane","flatcar","kubernetes","terraform"]
@@ -389,6 +392,7 @@ resource "proxmox_virtual_environment_vm" "control_plane2" {
} }
resource "proxmox_virtual_environment_vm" "control_plane3" { resource "proxmox_virtual_environment_vm" "control_plane3" {
name = "control-plane3" name = "control-plane3"
vm_id = 1003
node_name = "hyper3" node_name = "hyper3"
description = "kubernetes control-plane3" description = "kubernetes control-plane3"
tags = ["control-plane","flatcar","kubernetes","terraform"] tags = ["control-plane","flatcar","kubernetes","terraform"]
@@ -438,6 +442,7 @@ resource "proxmox_virtual_environment_vm" "control_plane3" {
resource "proxmox_virtual_environment_vm" "worker1" { resource "proxmox_virtual_environment_vm" "worker1" {
name = "worker1" name = "worker1"
vm_id = 1011
node_name = "hyper1" node_name = "hyper1"
description = "kubernetes worker1" description = "kubernetes worker1"
tags = ["worker","flatcar","kubernetes","terraform"] tags = ["worker","flatcar","kubernetes","terraform"]
@@ -481,6 +486,7 @@ resource "proxmox_virtual_environment_vm" "worker1" {
} }
resource "proxmox_virtual_environment_vm" "worker2" { resource "proxmox_virtual_environment_vm" "worker2" {
name = "worker2" name = "worker2"
vm_id = 1012
node_name = "hyper2" node_name = "hyper2"
description = "kubernetes worker2" description = "kubernetes worker2"
tags = ["worker","flatcar","kubernetes","terraform"] tags = ["worker","flatcar","kubernetes","terraform"]
@@ -524,6 +530,7 @@ resource "proxmox_virtual_environment_vm" "worker2" {
} }
resource "proxmox_virtual_environment_vm" "worker3" { resource "proxmox_virtual_environment_vm" "worker3" {
name = "worker3" name = "worker3"
vm_id = 1013
node_name = "hyper3" node_name = "hyper3"
description = "kubernetes worker3" description = "kubernetes worker3"
tags = ["worker","flatcar","kubernetes","terraform"] tags = ["worker","flatcar","kubernetes","terraform"]
@@ -567,6 +574,7 @@ resource "proxmox_virtual_environment_vm" "worker3" {
} }
resource "proxmox_virtual_environment_vm" "worker4" { resource "proxmox_virtual_environment_vm" "worker4" {
name = "worker4" name = "worker4"
vm_id = 1014
node_name = "pbs" node_name = "pbs"
description = "kubernetes worker4" description = "kubernetes worker4"
tags = ["worker","flatcar","kubernetes","terraform"] tags = ["worker","flatcar","kubernetes","terraform"]

View File

@@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "1.12.2", "terraform_version": "1.12.2",
"serial": 1199, "serial": 1247,
"lineage": "d92c42be-29f9-bad9-ef9a-3dc952ff5fa5", "lineage": "d92c42be-29f9-bad9-ef9a-3dc952ff5fa5",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@@ -161,7 +161,7 @@
{ {
"schema_version": 0, "schema_version": 0,
"attributes": { "attributes": {
"id": "1843431068323746952", "id": "6225671499492048727",
"triggers": null "triggers": null
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -193,7 +193,7 @@
{ {
"schema_version": 0, "schema_version": 0,
"attributes": { "attributes": {
"id": "5251948354307203741", "id": "7412815847183625707",
"triggers": null "triggers": null
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -217,7 +217,7 @@
{ {
"schema_version": 0, "schema_version": 0,
"attributes": { "attributes": {
"id": "7417463739352693308", "id": "7142081680222575747",
"triggers": null "triggers": null
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -264,8 +264,7 @@
"verify": true "verify": true
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
"identity_schema_version": 0, "identity_schema_version": 0
"private": "eyJvcmlnaW5hbF9zdGF0ZV9zaXplIjoiTlRjek1qUXpNemt5In0="
} }
] ]
}, },
@@ -559,7 +558,7 @@
"full": true, "full": true,
"node_name": "hyper1", "node_name": "hyper1",
"retries": 1, "retries": 1,
"vm_id": 105 "vm_id": 999
} }
], ],
"cpu": [ "cpu": [
@@ -567,7 +566,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 2, "cores": 2,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -581,7 +580,7 @@
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "107", "id": "1001",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -602,19 +601,7 @@
], ],
[ [
"10.0.2.91" "10.0.2.91"
], ]
[],
[
"10.0.10.192"
],
[],
[],
[],
[],
[],
[],
[],
[]
], ],
"ipv6_addresses": [ "ipv6_addresses": [
[ [
@@ -623,52 +610,14 @@
[ [
"2001:470:7116:2::91", "2001:470:7116:2::91",
"fd00:0:0:2::91", "fd00:0:0:2::91",
"fe80::be24:11ff:fead:6c8" "fe80::be24:11ff:fed4:dff2"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[],
[
"2001:470:7116:a:8495:c8a0:d59b:d0c0"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[
"fe80::ecee:eeff:feee:eeee"
] ]
], ],
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": null, "kvm_arguments": null,
"mac_addresses": [ "mac_addresses": [
"00:00:00:00:00:00", "00:00:00:00:00:00",
"BC:24:11:AD:06:C8", "BC:24:11:D4:DF:F2"
"EE:EE:EE:EE:EE:EE",
"00:00:00:00:00:00",
"66:78:AC:F8:81:98",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE",
"EE:EE:EE:EE:EE:EE"
], ],
"machine": null, "machine": null,
"memory": [ "memory": [
@@ -688,7 +637,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:AD:06:C8", "mac_address": "BC:24:11:D4:DF:F2",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -699,17 +648,7 @@
], ],
"network_interface_names": [ "network_interface_names": [
"lo", "lo",
"eth0", "eth0"
"cali982d92a1927",
"tunl0",
"vxlan-v6.calico",
"cali255e4efe8a9",
"cali8f088fa0194",
"cali960214389c4",
"calic6a4033d162",
"cali0dff2628096",
"calif38a99f23dd",
"cali3bb4f309ad6"
], ],
"node_name": "hyper1", "node_name": "hyper1",
"numa": [], "numa": [],
@@ -752,7 +691,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 107, "vm_id": 1001,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -791,7 +730,7 @@
"full": true, "full": true,
"node_name": "hyper1", "node_name": "hyper1",
"retries": 1, "retries": 1,
"vm_id": 105 "vm_id": 999
} }
], ],
"cpu": [ "cpu": [
@@ -799,7 +738,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 2, "cores": 2,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -813,7 +752,7 @@
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "108", "id": "1002",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -834,12 +773,7 @@
], ],
[ [
"10.0.2.92" "10.0.2.92"
], ]
[
"10.0.10.64"
],
[],
[]
], ],
"ipv6_addresses": [ "ipv6_addresses": [
[ [
@@ -848,24 +782,14 @@
[ [
"2001:470:7116:2::92", "2001:470:7116:2::92",
"fd00:0:0:2::92", "fd00:0:0:2::92",
"fe80::be24:11ff:feda:a900" "fe80::be24:11ff:fe27:56ac"
],
[],
[
"2001:470:7116:a:63eb:d7a8:d9b3:1e00"
],
[
"fe80::ecee:eeff:feee:eeee"
] ]
], ],
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": null, "kvm_arguments": null,
"mac_addresses": [ "mac_addresses": [
"00:00:00:00:00:00", "00:00:00:00:00:00",
"BC:24:11:DA:A9:00", "BC:24:11:27:56:AC"
"00:00:00:00:00:00",
"66:42:B5:2A:6A:1B",
"EE:EE:EE:EE:EE:EE"
], ],
"machine": null, "machine": null,
"memory": [ "memory": [
@@ -885,7 +809,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:DA:A9:00", "mac_address": "BC:24:11:27:56:AC",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -896,10 +820,7 @@
], ],
"network_interface_names": [ "network_interface_names": [
"lo", "lo",
"eth0", "eth0"
"tunl0",
"vxlan-v6.calico",
"calif29c4c18d09"
], ],
"node_name": "hyper2", "node_name": "hyper2",
"numa": [], "numa": [],
@@ -942,7 +863,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 108, "vm_id": 1002,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -985,7 +906,7 @@
"full": true, "full": true,
"node_name": "hyper1", "node_name": "hyper1",
"retries": 1, "retries": 1,
"vm_id": 105 "vm_id": 999
} }
], ],
"cpu": [ "cpu": [
@@ -993,7 +914,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 2, "cores": 2,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -1007,7 +928,7 @@
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "109", "id": "1003",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -1028,12 +949,7 @@
], ],
[ [
"10.0.2.93" "10.0.2.93"
], ]
[],
[
"10.0.10.0"
],
[]
], ],
"ipv6_addresses": [ "ipv6_addresses": [
[ [
@@ -1042,24 +958,14 @@
[ [
"2001:470:7116:2::93", "2001:470:7116:2::93",
"fd00:0:0:2::93", "fd00:0:0:2::93",
"fe80::be24:11ff:fe30:da72" "fe80::be24:11ff:fe1a:a9f2"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[],
[
"2001:470:7116:a:edec:9c79:57a2:840"
] ]
], ],
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": null, "kvm_arguments": null,
"mac_addresses": [ "mac_addresses": [
"00:00:00:00:00:00", "00:00:00:00:00:00",
"BC:24:11:30:DA:72", "BC:24:11:1A:A9:F2"
"EE:EE:EE:EE:EE:EE",
"00:00:00:00:00:00",
"66:EE:86:C9:B8:69"
], ],
"machine": null, "machine": null,
"memory": [ "memory": [
@@ -1079,7 +985,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:30:DA:72", "mac_address": "BC:24:11:1A:A9:F2",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -1090,10 +996,7 @@
], ],
"network_interface_names": [ "network_interface_names": [
"lo", "lo",
"eth0", "eth0"
"calif5887e5f5a5",
"tunl0",
"vxlan-v6.calico"
], ],
"node_name": "hyper3", "node_name": "hyper3",
"numa": [], "numa": [],
@@ -1136,7 +1039,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 109, "vm_id": 1003,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -1187,7 +1090,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 1, "cores": 1,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -1209,18 +1112,18 @@
"import_from": "cephfs:import/flatcar_production_proxmoxve_image.qcow2", "import_from": "cephfs:import/flatcar_production_proxmoxve_image.qcow2",
"interface": "virtio0", "interface": "virtio0",
"iothread": false, "iothread": false,
"path_in_datastore": "vm-105-disk-0", "path_in_datastore": "vm-999-disk-0",
"replicate": true, "replicate": true,
"serial": "", "serial": "",
"size": 50, "size": 50,
"speed": [], "speed": [],
"ssd": true "ssd": false
} }
], ],
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "105", "id": "999",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -1240,7 +1143,7 @@
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": "", "kvm_arguments": "",
"mac_addresses": [ "mac_addresses": [
"BC:24:11:3A:AF:86" "BC:24:11:04:26:47"
], ],
"machine": "", "machine": "",
"memory": [ "memory": [
@@ -1260,7 +1163,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:3A:AF:86", "mac_address": "BC:24:11:04:26:47",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -1304,7 +1207,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 105, "vm_id": 999,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -1340,7 +1243,7 @@
"full": true, "full": true,
"node_name": "hyper1", "node_name": "hyper1",
"retries": 1, "retries": 1,
"vm_id": 105 "vm_id": 999
} }
], ],
"cpu": [ "cpu": [
@@ -1348,7 +1251,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 2, "cores": 2,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -1362,7 +1265,7 @@
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "113", "id": "1011",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -1392,14 +1295,14 @@
[ [
"2001:470:7116:2::101", "2001:470:7116:2::101",
"fd00:0:0:2::101", "fd00:0:0:2::101",
"fe80::be24:11ff:fe79:dbdb" "fe80::be24:11ff:fe1e:5a3f"
] ]
], ],
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": null, "kvm_arguments": null,
"mac_addresses": [ "mac_addresses": [
"00:00:00:00:00:00", "00:00:00:00:00:00",
"BC:24:11:79:DB:DB" "BC:24:11:1E:5A:3F"
], ],
"machine": null, "machine": null,
"memory": [ "memory": [
@@ -1419,7 +1322,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:79:DB:DB", "mac_address": "BC:24:11:1E:5A:3F",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -1473,7 +1376,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 113, "vm_id": 1011,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@@ -1500,6 +1403,374 @@
} }
] ]
}, },
{
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "worker2",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"acpi": true,
"agent": [],
"amd_sev": [],
"audio_device": [],
"bios": "seabios",
"boot_order": [
"virtio0"
],
"cdrom": [],
"clone": [
{
"datastore_id": "",
"full": true,
"node_name": "hyper1",
"retries": 1,
"vm_id": 999
}
],
"cpu": [
{
"affinity": "",
"architecture": "",
"cores": 2,
"flags": null,
"hotplugged": 0,
"limit": 0,
"numa": false,
"sockets": 1,
"type": "host",
"units": 1024
}
],
"description": "kubernetes worker2",
"disk": [],
"efi_disk": [],
"hook_script_file_id": null,
"hostpci": [],
"id": "1012",
"initialization": [
{
"datastore_id": "Pool1",
"dns": [],
"interface": "ide2",
"ip_config": [],
"meta_data_file_id": "",
"network_data_file_id": "",
"type": "",
"user_account": [],
"user_data_file_id": "cephfs:snippets/worker2-ignition-user-data",
"vendor_data_file_id": ""
}
],
"ipv4_addresses": [
[
"127.0.0.1"
],
[
"10.0.2.102"
]
],
"ipv6_addresses": [
[
"::1"
],
[
"2001:470:7116:2::102",
"fd00:0:0:2::102",
"fe80::be24:11ff:fe1e:f45"
]
],
"keyboard_layout": "en-us",
"kvm_arguments": null,
"mac_addresses": [
"00:00:00:00:00:00",
"BC:24:11:1E:0F:45"
],
"machine": null,
"memory": [
{
"dedicated": 10240,
"floating": 10240,
"hugepages": "",
"keep_hugepages": false,
"shared": 0
}
],
"migrate": false,
"name": "worker2",
"network_device": [
{
"bridge": "vmbr0",
"disconnected": false,
"enabled": true,
"firewall": false,
"mac_address": "BC:24:11:1E:0F:45",
"model": "virtio",
"mtu": 0,
"queues": 0,
"rate_limit": 0,
"trunks": "",
"vlan_id": 0
}
],
"network_interface_names": [
"lo",
"eth0"
],
"node_name": "hyper2",
"numa": [],
"on_boot": true,
"operating_system": [],
"pool_id": null,
"protection": false,
"reboot": false,
"reboot_after_update": true,
"rng": [],
"scsi_hardware": "virtio-scsi-pci",
"serial_device": [],
"smbios": [],
"started": true,
"startup": [
{
"down_delay": -1,
"order": 1,
"up_delay": -1
}
],
"stop_on_destroy": false,
"tablet_device": true,
"tags": [
"flatcar",
"kubernetes",
"terraform",
"worker"
],
"template": false,
"timeout_clone": 1800,
"timeout_create": 1800,
"timeout_migrate": 1800,
"timeout_move_disk": 1800,
"timeout_reboot": 1800,
"timeout_shutdown_vm": 1800,
"timeout_start_vm": 1800,
"timeout_stop_vm": 300,
"tpm_state": [],
"usb": [],
"vga": [],
"virtiofs": [],
"vm_id": 1012,
"watchdog": []
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "bnVsbA==",
"dependencies": [
"data.ct_config.control_plane1_ignition",
"data.ct_config.control_plane2_ignition",
"data.ct_config.control_plane3_ignition",
"data.ct_config.worker2_ignition",
"null_resource.wait_for_cluster_ready",
"null_resource.wait_for_cp1_api",
"null_resource.wait_for_cp2_cp3_api",
"proxmox_virtual_environment_download_file.flatcar_image",
"proxmox_virtual_environment_file.control_plane1_ignition",
"proxmox_virtual_environment_file.control_plane2_ignition",
"proxmox_virtual_environment_file.control_plane3_ignition",
"proxmox_virtual_environment_file.worker2_ignition",
"proxmox_virtual_environment_vm.control_plane1",
"proxmox_virtual_environment_vm.control_plane2",
"proxmox_virtual_environment_vm.control_plane3",
"proxmox_virtual_environment_vm.flatcar_template"
]
}
]
},
{
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "worker3",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"acpi": true,
"agent": [],
"amd_sev": [],
"audio_device": [],
"bios": "seabios",
"boot_order": [
"virtio0"
],
"cdrom": [],
"clone": [
{
"datastore_id": "",
"full": true,
"node_name": "hyper1",
"retries": 1,
"vm_id": 999
}
],
"cpu": [
{
"affinity": "",
"architecture": "",
"cores": 2,
"flags": null,
"hotplugged": 0,
"limit": 0,
"numa": false,
"sockets": 1,
"type": "host",
"units": 1024
}
],
"description": "kubernetes worker3",
"disk": [],
"efi_disk": [],
"hook_script_file_id": null,
"hostpci": [],
"id": "1013",
"initialization": [
{
"datastore_id": "Pool1",
"dns": [],
"interface": "ide2",
"ip_config": [],
"meta_data_file_id": "",
"network_data_file_id": "",
"type": "",
"user_account": [],
"user_data_file_id": "cephfs:snippets/worker3-ignition-user-data",
"vendor_data_file_id": ""
}
],
"ipv4_addresses": [
[
"127.0.0.1"
],
[
"10.0.2.103"
]
],
"ipv6_addresses": [
[
"::1"
],
[
"2001:470:7116:2::103",
"fd00:0:0:2::103",
"fe80::be24:11ff:fe20:fede"
]
],
"keyboard_layout": "en-us",
"kvm_arguments": null,
"mac_addresses": [
"00:00:00:00:00:00",
"BC:24:11:20:FE:DE"
],
"machine": null,
"memory": [
{
"dedicated": 10240,
"floating": 10240,
"hugepages": "",
"keep_hugepages": false,
"shared": 0
}
],
"migrate": false,
"name": "worker3",
"network_device": [
{
"bridge": "vmbr0",
"disconnected": false,
"enabled": true,
"firewall": false,
"mac_address": "BC:24:11:20:FE:DE",
"model": "virtio",
"mtu": 0,
"queues": 0,
"rate_limit": 0,
"trunks": "",
"vlan_id": 0
}
],
"network_interface_names": [
"lo",
"eth0"
],
"node_name": "hyper3",
"numa": [],
"on_boot": true,
"operating_system": [],
"pool_id": null,
"protection": false,
"reboot": false,
"reboot_after_update": true,
"rng": [],
"scsi_hardware": "virtio-scsi-pci",
"serial_device": [],
"smbios": [],
"started": true,
"startup": [
{
"down_delay": -1,
"order": 1,
"up_delay": -1
}
],
"stop_on_destroy": false,
"tablet_device": true,
"tags": [
"flatcar",
"kubernetes",
"terraform",
"worker"
],
"template": false,
"timeout_clone": 1800,
"timeout_create": 1800,
"timeout_migrate": 1800,
"timeout_move_disk": 1800,
"timeout_reboot": 1800,
"timeout_shutdown_vm": 1800,
"timeout_start_vm": 1800,
"timeout_stop_vm": 300,
"tpm_state": [],
"usb": [],
"vga": [],
"virtiofs": [],
"vm_id": 1013,
"watchdog": []
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "bnVsbA==",
"dependencies": [
"data.ct_config.control_plane1_ignition",
"data.ct_config.control_plane2_ignition",
"data.ct_config.control_plane3_ignition",
"data.ct_config.worker3_ignition",
"null_resource.wait_for_cluster_ready",
"null_resource.wait_for_cp1_api",
"null_resource.wait_for_cp2_cp3_api",
"proxmox_virtual_environment_download_file.flatcar_image",
"proxmox_virtual_environment_file.control_plane1_ignition",
"proxmox_virtual_environment_file.control_plane2_ignition",
"proxmox_virtual_environment_file.control_plane3_ignition",
"proxmox_virtual_environment_file.worker3_ignition",
"proxmox_virtual_environment_vm.control_plane1",
"proxmox_virtual_environment_vm.control_plane2",
"proxmox_virtual_environment_vm.control_plane3",
"proxmox_virtual_environment_vm.flatcar_template"
]
}
]
},
{ {
"mode": "managed", "mode": "managed",
"type": "proxmox_virtual_environment_vm", "type": "proxmox_virtual_environment_vm",
@@ -1524,7 +1795,7 @@
"full": true, "full": true,
"node_name": "hyper1", "node_name": "hyper1",
"retries": 1, "retries": 1,
"vm_id": 105 "vm_id": 999
} }
], ],
"cpu": [ "cpu": [
@@ -1532,7 +1803,7 @@
"affinity": "", "affinity": "",
"architecture": "", "architecture": "",
"cores": 2, "cores": 2,
"flags": [], "flags": null,
"hotplugged": 0, "hotplugged": 0,
"limit": 0, "limit": 0,
"numa": false, "numa": false,
@@ -1546,7 +1817,7 @@
"efi_disk": [], "efi_disk": [],
"hook_script_file_id": null, "hook_script_file_id": null,
"hostpci": [], "hostpci": [],
"id": "112", "id": "1014",
"initialization": [ "initialization": [
{ {
"datastore_id": "Pool1", "datastore_id": "Pool1",
@@ -1567,13 +1838,7 @@
], ],
[ [
"10.0.2.104" "10.0.2.104"
], ]
[],
[
"10.0.10.66"
],
[],
[]
], ],
"ipv6_addresses": [ "ipv6_addresses": [
[ [
@@ -1582,28 +1847,14 @@
[ [
"2001:470:7116:2::104", "2001:470:7116:2::104",
"fd00:0:0:2::104", "fd00:0:0:2::104",
"fe80::be24:11ff:fef3:523d" "fe80::be24:11ff:fe6b:88c7"
],
[
"fe80::ecee:eeff:feee:eeee"
],
[],
[
"2001:470:7116:a:ed2a:1bf0:eec6:2100"
],
[
"fe80::ecee:eeff:feee:eeee"
] ]
], ],
"keyboard_layout": "en-us", "keyboard_layout": "en-us",
"kvm_arguments": null, "kvm_arguments": null,
"mac_addresses": [ "mac_addresses": [
"00:00:00:00:00:00", "00:00:00:00:00:00",
"BC:24:11:F3:52:3D", "BC:24:11:6B:88:C7"
"EE:EE:EE:EE:EE:EE",
"00:00:00:00:00:00",
"66:41:F1:FA:94:3B",
"EE:EE:EE:EE:EE:EE"
], ],
"machine": null, "machine": null,
"memory": [ "memory": [
@@ -1623,7 +1874,7 @@
"disconnected": false, "disconnected": false,
"enabled": true, "enabled": true,
"firewall": false, "firewall": false,
"mac_address": "BC:24:11:F3:52:3D", "mac_address": "BC:24:11:6B:88:C7",
"model": "virtio", "model": "virtio",
"mtu": 0, "mtu": 0,
"queues": 0, "queues": 0,
@@ -1634,11 +1885,7 @@
], ],
"network_interface_names": [ "network_interface_names": [
"lo", "lo",
"eth0", "eth0"
"cali2f86d5eb46e",
"tunl0",
"vxlan-v6.calico",
"cali232f9cc49cb"
], ],
"node_name": "pbs", "node_name": "pbs",
"numa": [], "numa": [],
@@ -1681,7 +1928,7 @@
"usb": [], "usb": [],
"vga": [], "vga": [],
"virtiofs": [], "virtiofs": [],
"vm_id": 112, "vm_id": 1014,
"watchdog": [] "watchdog": []
}, },
"sensitive_attributes": [], "sensitive_attributes": [],

File diff suppressed because one or more lines are too long