# A Managed proxy backed by a Proxmox VE cluster through the proxmox # provider: the operator full-clones a prepared template on the named node, # attaches a NoCloud seed ISO carrying this cloud-init, and starts the VM on # the configured network (here VLAN 4 on vmbr0, IP from that network's # DHCP), where cloud-init installs Squid. Requires a providers-config entry # named "proxmox-home" (see providers-config.yaml) and the proxmox-token # Secret (docs/proxmox-provider.md). # # placement.zone is a node name from proxmox.nodes (optional when only one # node is configured); machineType and image are keys in the provider's # machineTypes and templates maps. The address comes from the guest agent, # which a vendor-data script installs at first boot, so the VM's network # needs a route to a package mirror. apiVersion: crawl.example.com/v1alpha1 kind: Proxy metadata: name: proxy-proxmox-sample spec: mode: Managed provider: proxmox-home placement: zone: pv1-1 machineType: small image: debian-13 port: 3128 cloudInit: inline: | #cloud-config packages: - squid write_files: - path: /etc/squid/conf.d/proxy-operator.conf content: | http_port 3128 http_access allow all via off forwarded_for off runcmd: - systemctl restart squid # Optional: log in with `ssh debian@` (the Debian image's default # user) to look around; `qm terminal ` on the node works too. # ssh_authorized_keys: # - ssh-ed25519 AAAA... you@laptop attributes: geo: home purpose: crawl