From 4d656543107f9a0df4f00b5d62747b01efb04dd9 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 3 Sep 2025 07:49:46 +0200 Subject: [PATCH] fixes, target-node --- infrastructure-admin/terraform.tfstate | 617 +++++++++++++++++- infrastructure-admin/terraform.tfstate.backup | 2 +- infrastructure-admin/terraform.tfvars | 6 +- 3 files changed, 620 insertions(+), 5 deletions(-) diff --git a/infrastructure-admin/terraform.tfstate b/infrastructure-admin/terraform.tfstate index 72a565e..f1e71b6 100644 --- a/infrastructure-admin/terraform.tfstate +++ b/infrastructure-admin/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.13.0", - "serial": 11, + "serial": 17, "lineage": "d5a26e70-76e1-4ee6-fbd3-7e17e672cf00", "outputs": { "controller_ip": { @@ -18,6 +18,621 @@ } }, "resources": [ + { + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "controller", + "provider": "provider[\"registry.terraform.io/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "additional_wait": 5, + "agent": 0, + "agent_timeout": 90, + "args": "", + "automatic_reboot": true, + "balloon": 0, + "bios": "seabios", + "boot": "c", + "bootdisk": "scsi0", + "ci_wait": null, + "cicustom": null, + "cipassword": "", + "ciupgrade": false, + "ciuser": "ubuntu", + "clone": null, + "clone_id": 9000, + "clone_wait": 10, + "cores": 0, + "cpu": [ + { + "affinity": "", + "cores": 2, + "flags": [], + "limit": 0, + "numa": false, + "sockets": 1, + "type": "host", + "units": 0, + "vcores": 0 + } + ], + "cpu_type": "", + "current_node": "pve", + "default_ipv4_address": "", + "default_ipv6_address": "", + "define_connection_info": true, + "desc": null, + "description": "Managed by Terraform.", + "disk": [ + { + "asyncio": "", + "backup": true, + "cache": "", + "discard": false, + "disk_file": "", + "emulatessd": false, + "format": "raw", + "id": 0, + "iops_r_burst": 0, + "iops_r_burst_length": 0, + "iops_r_concurrent": 0, + "iops_wr_burst": 0, + "iops_wr_burst_length": 0, + "iops_wr_concurrent": 0, + "iothread": false, + "iso": "", + "linked_disk_id": -1, + "mbps_r_burst": 0, + "mbps_r_concurrent": 0, + "mbps_wr_burst": 0, + "mbps_wr_concurrent": 0, + "passthrough": false, + "readonly": false, + "replicate": false, + "serial": "", + "size": "20G", + "slot": "scsi0", + "storage": "local-lvm", + "type": "disk", + "wwn": "" + } + ], + "disks": [], + "efidisk": [], + "force_create": false, + "force_recreate_on_change_of": null, + "full_clone": true, + "hagroup": "", + "hastate": "", + "hostpci": [], + "hotplug": "network,disk,usb", + "id": "pve/qemu/102", + "ipconfig0": "ip=192.168.122.50/24,gw=192.168.122.1", + "ipconfig1": null, + "ipconfig10": null, + "ipconfig11": null, + "ipconfig12": null, + "ipconfig13": null, + "ipconfig14": null, + "ipconfig15": null, + "ipconfig2": null, + "ipconfig3": null, + "ipconfig4": null, + "ipconfig5": null, + "ipconfig6": null, + "ipconfig7": null, + "ipconfig8": null, + "ipconfig9": null, + "kvm": true, + "linked_vmid": 0, + "machine": "", + "memory": 1024, + "name": "k3s-controller", + "nameserver": null, + "network": [ + { + "bridge": "vmbr0", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "bc:24:11:78:63:79", + "model": "virtio", + "mtu": 0, + "queues": 0, + "rate": 0, + "tag": 0 + } + ], + "numa": false, + "onboot": false, + "os_network_config": null, + "os_type": null, + "pci": [], + "pcis": [], + "pool": "", + "protection": false, + "pxe": null, + "qemu_os": "other", + "reboot_required": false, + "rng": [], + "scsihw": "virtio-scsi-pci", + "searchdomain": null, + "serial": [], + "skip_ipv4": false, + "skip_ipv6": false, + "smbios": [ + { + "family": "", + "manufacturer": "", + "product": "", + "serial": "", + "sku": "", + "uuid": "bc4f9779-2cc1-4516-a2a6-66b81bc0e397", + "version": "" + } + ], + "sockets": 0, + "ssh_forward_ip": null, + "ssh_host": "", + "ssh_port": "22", + "ssh_private_key": null, + "ssh_user": null, + "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFJXEiOlfpKVRYpKvD7e3MlCv+8I0wR9Ed6dPzkCH/0sdUya6cS2Cyh69ctw94CZZ35d0ahhbiDphe8Dz4KeWOdP9WcgG+88JhOEQBiz3tqXT4sP9a2jitdyCkLNnqkrcz9WokC/l8M/RbmFrMJxBhnE5xq++5CcOq/CPxIqtgTiCb6w0R+QxAtjB6jrZ8iuDujmeDHtts+TJ9iDDaS+vckkM5g4M8fprP1/CHIM4rQH2kD8LPy8XLUlPgr3hpJq+FH/2k7dxd7yYUdQG/CYr31x2NfYPAArgosmZHVPttjGljkS5IPr1WDBugXBMian5Oi/7iYE1pRo73NJTarFdfvegTz+emZbOId5O50LofZY7eacGD2XOiN995wStXYUlINjHVCARERk2JCCKoiCaR49aGTala6h2RspkumK46kMvUsrhSPhUu19z8phqYnohEKgmJJfpZeRIFAfZzsX47acAW4MzyJhDFPo53PRKn34sqL1SnL0plqfACeKJbhz8= alex@camulodunum\n", + "startup": "", + "tablet": true, + "tags": " ", + "target_node": "pve", + "target_nodes": null, + "timeouts": null, + "tpm_state": [], + "unused_disk": [], + "usb": [], + "usbs": [], + "vcpus": 0, + "vga": [], + "vm_state": "running", + "vmid": 102 + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "cicustom" + } + ], + [ + { + "type": "get_attr", + "value": "cipassword" + } + ], + [ + { + "type": "get_attr", + "value": "ssh_private_key" + } + ] + ], + "identity_schema_version": 0, + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "random_password.k3s_token" + ] + } + ] + }, + { + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "worker1", + "provider": "provider[\"registry.terraform.io/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "additional_wait": 5, + "agent": 0, + "agent_timeout": 90, + "args": "", + "automatic_reboot": true, + "balloon": 0, + "bios": "seabios", + "boot": "c", + "bootdisk": "scsi0", + "ci_wait": null, + "cicustom": null, + "cipassword": "", + "ciupgrade": false, + "ciuser": "ubuntu", + "clone": null, + "clone_id": 9000, + "clone_wait": 10, + "cores": 0, + "cpu": [ + { + "affinity": "", + "cores": 2, + "flags": [], + "limit": 0, + "numa": false, + "sockets": 1, + "type": "host", + "units": 0, + "vcores": 0 + } + ], + "cpu_type": "", + "current_node": "pve", + "default_ipv4_address": "", + "default_ipv6_address": "", + "define_connection_info": true, + "desc": null, + "description": "Managed by Terraform.", + "disk": [ + { + "asyncio": "", + "backup": true, + "cache": "", + "discard": false, + "disk_file": "", + "emulatessd": false, + "format": "raw", + "id": 0, + "iops_r_burst": 0, + "iops_r_burst_length": 0, + "iops_r_concurrent": 0, + "iops_wr_burst": 0, + "iops_wr_burst_length": 0, + "iops_wr_concurrent": 0, + "iothread": false, + "iso": "", + "linked_disk_id": -1, + "mbps_r_burst": 0, + "mbps_r_concurrent": 0, + "mbps_wr_burst": 0, + "mbps_wr_concurrent": 0, + "passthrough": false, + "readonly": false, + "replicate": false, + "serial": "", + "size": "20G", + "slot": "scsi0", + "storage": "local-lvm", + "type": "disk", + "wwn": "" + } + ], + "disks": [], + "efidisk": [], + "force_create": false, + "force_recreate_on_change_of": null, + "full_clone": true, + "hagroup": "", + "hastate": "", + "hostpci": [], + "hotplug": "network,disk,usb", + "id": "pve/qemu/100", + "ipconfig0": "ip=192.168.122.51/24,gw=192.168.122.1", + "ipconfig1": null, + "ipconfig10": null, + "ipconfig11": null, + "ipconfig12": null, + "ipconfig13": null, + "ipconfig14": null, + "ipconfig15": null, + "ipconfig2": null, + "ipconfig3": null, + "ipconfig4": null, + "ipconfig5": null, + "ipconfig6": null, + "ipconfig7": null, + "ipconfig8": null, + "ipconfig9": null, + "kvm": true, + "linked_vmid": 0, + "machine": "", + "memory": 1024, + "name": "k3s-worker1", + "nameserver": null, + "network": [ + { + "bridge": "vmbr0", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "bc:24:11:28:24:ca", + "model": "virtio", + "mtu": 0, + "queues": 0, + "rate": 0, + "tag": 0 + } + ], + "numa": false, + "onboot": false, + "os_network_config": null, + "os_type": null, + "pci": [], + "pcis": [], + "pool": "", + "protection": false, + "pxe": null, + "qemu_os": "other", + "reboot_required": false, + "rng": [], + "scsihw": "virtio-scsi-pci", + "searchdomain": null, + "serial": [], + "skip_ipv4": false, + "skip_ipv6": false, + "smbios": [ + { + "family": "", + "manufacturer": "", + "product": "", + "serial": "", + "sku": "", + "uuid": "9fe50c64-c9e1-486f-9a9e-f8638f120690", + "version": "" + } + ], + "sockets": 0, + "ssh_forward_ip": null, + "ssh_host": "", + "ssh_port": "22", + "ssh_private_key": null, + "ssh_user": null, + "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFJXEiOlfpKVRYpKvD7e3MlCv+8I0wR9Ed6dPzkCH/0sdUya6cS2Cyh69ctw94CZZ35d0ahhbiDphe8Dz4KeWOdP9WcgG+88JhOEQBiz3tqXT4sP9a2jitdyCkLNnqkrcz9WokC/l8M/RbmFrMJxBhnE5xq++5CcOq/CPxIqtgTiCb6w0R+QxAtjB6jrZ8iuDujmeDHtts+TJ9iDDaS+vckkM5g4M8fprP1/CHIM4rQH2kD8LPy8XLUlPgr3hpJq+FH/2k7dxd7yYUdQG/CYr31x2NfYPAArgosmZHVPttjGljkS5IPr1WDBugXBMian5Oi/7iYE1pRo73NJTarFdfvegTz+emZbOId5O50LofZY7eacGD2XOiN995wStXYUlINjHVCARERk2JCCKoiCaR49aGTala6h2RspkumK46kMvUsrhSPhUu19z8phqYnohEKgmJJfpZeRIFAfZzsX47acAW4MzyJhDFPo53PRKn34sqL1SnL0plqfACeKJbhz8= alex@camulodunum\n", + "startup": "", + "tablet": true, + "tags": " ", + "target_node": "pve", + "target_nodes": null, + "timeouts": null, + "tpm_state": [], + "unused_disk": [], + "usb": [], + "usbs": [], + "vcpus": 0, + "vga": [], + "vm_state": "running", + "vmid": 100 + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "cicustom" + } + ], + [ + { + "type": "get_attr", + "value": "cipassword" + } + ], + [ + { + "type": "get_attr", + "value": "ssh_private_key" + } + ] + ], + "identity_schema_version": 0, + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "random_password.k3s_token" + ] + } + ] + }, + { + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "worker2", + "provider": "provider[\"registry.terraform.io/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "additional_wait": 5, + "agent": 0, + "agent_timeout": 90, + "args": "", + "automatic_reboot": true, + "balloon": 0, + "bios": "seabios", + "boot": "c", + "bootdisk": "scsi0", + "ci_wait": null, + "cicustom": null, + "cipassword": "", + "ciupgrade": false, + "ciuser": "ubuntu", + "clone": null, + "clone_id": 9000, + "clone_wait": 10, + "cores": 0, + "cpu": [ + { + "affinity": "", + "cores": 2, + "flags": [], + "limit": 0, + "numa": false, + "sockets": 1, + "type": "host", + "units": 0, + "vcores": 0 + } + ], + "cpu_type": "", + "current_node": "pve", + "default_ipv4_address": "", + "default_ipv6_address": "", + "define_connection_info": true, + "desc": null, + "description": "Managed by Terraform.", + "disk": [ + { + "asyncio": "", + "backup": true, + "cache": "", + "discard": false, + "disk_file": "", + "emulatessd": false, + "format": "raw", + "id": 0, + "iops_r_burst": 0, + "iops_r_burst_length": 0, + "iops_r_concurrent": 0, + "iops_wr_burst": 0, + "iops_wr_burst_length": 0, + "iops_wr_concurrent": 0, + "iothread": false, + "iso": "", + "linked_disk_id": -1, + "mbps_r_burst": 0, + "mbps_r_concurrent": 0, + "mbps_wr_burst": 0, + "mbps_wr_concurrent": 0, + "passthrough": false, + "readonly": false, + "replicate": false, + "serial": "", + "size": "20G", + "slot": "scsi0", + "storage": "local-lvm", + "type": "disk", + "wwn": "" + } + ], + "disks": [], + "efidisk": [], + "force_create": false, + "force_recreate_on_change_of": null, + "full_clone": true, + "hagroup": "", + "hastate": "", + "hostpci": [], + "hotplug": "network,disk,usb", + "id": "pve/qemu/101", + "ipconfig0": "ip=192.168.122.52/24,gw=192.168.122.1", + "ipconfig1": null, + "ipconfig10": null, + "ipconfig11": null, + "ipconfig12": null, + "ipconfig13": null, + "ipconfig14": null, + "ipconfig15": null, + "ipconfig2": null, + "ipconfig3": null, + "ipconfig4": null, + "ipconfig5": null, + "ipconfig6": null, + "ipconfig7": null, + "ipconfig8": null, + "ipconfig9": null, + "kvm": true, + "linked_vmid": 0, + "machine": "", + "memory": 1024, + "name": "k3s-worker2", + "nameserver": null, + "network": [ + { + "bridge": "vmbr0", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "bc:24:11:18:b1:00", + "model": "virtio", + "mtu": 0, + "queues": 0, + "rate": 0, + "tag": 0 + } + ], + "numa": false, + "onboot": false, + "os_network_config": null, + "os_type": null, + "pci": [], + "pcis": [], + "pool": "", + "protection": false, + "pxe": null, + "qemu_os": "other", + "reboot_required": false, + "rng": [], + "scsihw": "virtio-scsi-pci", + "searchdomain": null, + "serial": [], + "skip_ipv4": false, + "skip_ipv6": false, + "smbios": [ + { + "family": "", + "manufacturer": "", + "product": "", + "serial": "", + "sku": "", + "uuid": "df0a1722-f948-42ba-bdc6-fc4adb9ef9fc", + "version": "" + } + ], + "sockets": 0, + "ssh_forward_ip": null, + "ssh_host": "", + "ssh_port": "22", + "ssh_private_key": null, + "ssh_user": null, + "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFJXEiOlfpKVRYpKvD7e3MlCv+8I0wR9Ed6dPzkCH/0sdUya6cS2Cyh69ctw94CZZ35d0ahhbiDphe8Dz4KeWOdP9WcgG+88JhOEQBiz3tqXT4sP9a2jitdyCkLNnqkrcz9WokC/l8M/RbmFrMJxBhnE5xq++5CcOq/CPxIqtgTiCb6w0R+QxAtjB6jrZ8iuDujmeDHtts+TJ9iDDaS+vckkM5g4M8fprP1/CHIM4rQH2kD8LPy8XLUlPgr3hpJq+FH/2k7dxd7yYUdQG/CYr31x2NfYPAArgosmZHVPttjGljkS5IPr1WDBugXBMian5Oi/7iYE1pRo73NJTarFdfvegTz+emZbOId5O50LofZY7eacGD2XOiN995wStXYUlINjHVCARERk2JCCKoiCaR49aGTala6h2RspkumK46kMvUsrhSPhUu19z8phqYnohEKgmJJfpZeRIFAfZzsX47acAW4MzyJhDFPo53PRKn34sqL1SnL0plqfACeKJbhz8= alex@camulodunum\n", + "startup": "", + "tablet": true, + "tags": " ", + "target_node": "pve", + "target_nodes": null, + "timeouts": null, + "tpm_state": [], + "unused_disk": [], + "usb": [], + "usbs": [], + "vcpus": 0, + "vga": [], + "vm_state": "running", + "vmid": 101 + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "cicustom" + } + ], + [ + { + "type": "get_attr", + "value": "cipassword" + } + ], + [ + { + "type": "get_attr", + "value": "ssh_private_key" + } + ] + ], + "identity_schema_version": 0, + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "random_password.k3s_token" + ] + } + ] + }, { "mode": "managed", "type": "random_password", diff --git a/infrastructure-admin/terraform.tfstate.backup b/infrastructure-admin/terraform.tfstate.backup index c63feb6..72a565e 100644 --- a/infrastructure-admin/terraform.tfstate.backup +++ b/infrastructure-admin/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.13.0", - "serial": 7, + "serial": 11, "lineage": "d5a26e70-76e1-4ee6-fbd3-7e17e672cf00", "outputs": { "controller_ip": { diff --git a/infrastructure-admin/terraform.tfvars b/infrastructure-admin/terraform.tfvars index ac4bad4..ab86e48 100644 --- a/infrastructure-admin/terraform.tfvars +++ b/infrastructure-admin/terraform.tfvars @@ -11,9 +11,9 @@ proxmox_tls_insecure = true # -------------------------- template_id = "9000" # ID of your cloud-init Ubuntu template in Proxmox target_nodes = { - controller = "kube-controller" - worker1 = "kube-worker1" - worker2 = "kube-worker2" + controller = "pve" + worker1 = "pve" + worker2 = "pve" } # --------------------------