update
This commit is contained in:
@@ -44,7 +44,7 @@ resource "proxmox_vm_qemu" "controller" {
|
|||||||
full_clone = true
|
full_clone = true
|
||||||
cores = 2
|
cores = 2
|
||||||
sockets = 1
|
sockets = 1
|
||||||
memory = 4096
|
memory = 1024
|
||||||
scsihw = "virtio-scsi-pci"
|
scsihw = "virtio-scsi-pci"
|
||||||
disk {
|
disk {
|
||||||
size = "20G"
|
size = "20G"
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
# --------------------------
|
# --------------------------
|
||||||
# Proxmox Connection
|
# Proxmox Connection
|
||||||
# --------------------------
|
# --------------------------
|
||||||
proxmox_url = "https://pve.example.com:8006/api2/json"
|
proxmox_url = "https://192.168.122.46:8006/api2/json"
|
||||||
proxmox_user = "root@pam"
|
proxmox_user = "root@pam"
|
||||||
proxmox_password = "YourProxmoxPassword"
|
proxmox_password = "Makemyday1"
|
||||||
proxmox_tls_insecure = true
|
proxmox_tls_insecure = true
|
||||||
|
|
||||||
# --------------------------
|
# --------------------------
|
||||||
# Template & Target Nodes
|
# Template & Target Nodes
|
||||||
# --------------------------
|
# --------------------------
|
||||||
template_id = "100" # ID of your cloud-init Ubuntu template in Proxmox
|
template_id = "9000" # ID of your cloud-init Ubuntu template in Proxmox
|
||||||
target_nodes = {
|
target_nodes = {
|
||||||
controller = "pve1"
|
controller = "kube-controller"
|
||||||
worker1 = "pve2"
|
worker1 = "kube-worker1"
|
||||||
worker2 = "pve3"
|
worker2 = "kube-worker2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------------
|
# --------------------------
|
||||||
# SSH Keys for Cloud-Init
|
# SSH Keys for Cloud-Init
|
||||||
# --------------------------
|
# --------------------------
|
||||||
ssh_public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD..." # Replace with your public key
|
ssh_public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFJXEiOlfpKVRYpKvD7e3MlCv+8I0wR9Ed6dPzkCH/0sdUya6cS2Cyh69ctw94CZZ35d0ahhbiDphe8Dz4KeWOdP9WcgG+88JhOEQBiz3tqXT4sP9a2jitdyCkLNnqkrcz9WokC/l8M/RbmFrMJxBhnE5xq++5CcOq/CPxIqtgTiCb6w0R+QxAtjB6jrZ8iuDujmeDHtts+TJ9iDDaS+vckkM5g4M8fprP1/CHIM4rQH2kD8LPy8XLUlPgr3hpJq+FH/2k7dxd7yYUdQG/CYr31x2NfYPAArgosmZHVPttjGljkS5IPr1WDBugXBMian5Oi/7iYE1pRo73NJTarFdfvegTz+emZbOId5O50LofZY7eacGD2XOiN995wStXYUlINjHVCARERk2JCCKoiCaR49aGTala6h2RspkumK46kMvUsrhSPhUu19z8phqYnohEKgmJJfpZeRIFAfZzsX47acAW4MzyJhDFPo53PRKn34sqL1SnL0plqfACeKJbhz8= alex@camulodunum" # Replace with your public key
|
||||||
|
|
||||||
# --------------------------
|
# --------------------------
|
||||||
# Networking
|
# Networking
|
||||||
# --------------------------
|
# --------------------------
|
||||||
bridge = "vmbr0"
|
bridge = "vmbr0"
|
||||||
storage = "local-lvm"
|
storage = "local-lvm"
|
||||||
controller_ip = "192.168.10.10"
|
controller_ip = "192.168.122.50"
|
||||||
worker1_ip = "192.168.10.11"
|
worker1_ip = "192.168.122.51"
|
||||||
worker2_ip = "192.168.10.12"
|
worker2_ip = "192.168.122.52"
|
||||||
netmask = "24"
|
netmask = "24"
|
||||||
gateway = "192.168.10.1"
|
gateway = "192.168.122.1"
|
||||||
vm_domain = "lab.local"
|
vm_domain = "local"
|
||||||
|
|||||||
Reference in New Issue
Block a user