incus-contrib/incusos/examples/lab-cluster.yaml

45 lines
1.1 KiB
YAML

# lab-cluster.yaml - 3-node IncusOS cluster for lab testing
#
# Deploys 3 standalone Incus nodes that can be clustered after deployment.
# All nodes get apply_defaults: true so they have matching storage pool
# and network bridge configurations.
#
# Usage:
# incusos-proxmox --dry-run examples/lab-cluster.yaml # Preview
# incusos-proxmox --yes examples/lab-cluster.yaml # Deploy
# incusos-proxmox --status examples/lab-cluster.yaml # Check status
# incusos-proxmox --cleanup examples/lab-cluster.yaml # Tear down VMs
# incusos-proxmox --cleanup --deep examples/lab-cluster.yaml # Full cleanup
#
# After deployment, form a cluster with lab-test:
# lab-test --phase cluster examples/lab-cluster.yaml
proxmox:
host: 192.168.1.29
method: api
api_token_id: automation@pve!deploy
storage: local-zfs
pool: IncusLab
defaults:
cores: 2
memory: 4096
disk: 50
start_vmid: 900
vms:
- name: incus-lab-01
app: incus
apply_defaults: true
cores: 4
memory: 8192
disk: 64
- name: incus-lab-02
app: incus
apply_defaults: true
- name: incus-lab-03
app: incus
apply_defaults: true