feat(deploy): prepare the LXD host for the isolated runner and labs
This commit is contained in:
1 parent
63e6b41bec
commit
56dcf32f8c
4 files changed
+152
No files matched your search
@@ -0,0 +1,68 @@
|
||||
# LXD host layout for the isolated runner and the practical labs (TASK-592).
|
||||
# Applied once on the app host with: lxd init --preseed < lxd-preseed.yaml
|
||||
# It only adds objects; it does not touch Docker, wg0 or the awg-lincodex tunnel.
|
||||
storage_pools:
|
||||
# Copy-on-write pool, so lab nodes are cloned from prepared snapshots in seconds.
|
||||
- name: lincodex
|
||||
driver: btrfs
|
||||
config:
|
||||
size: 40GiB
|
||||
networks:
|
||||
# The runner VM. Only the backend reaches it; the ACL below drops everything else.
|
||||
- name: lxdbr-runner
|
||||
type: bridge
|
||||
config:
|
||||
ipv4.address: 10.80.0.1/24
|
||||
ipv4.nat: "false"
|
||||
ipv6.address: none
|
||||
ipv4.dhcp: "false"
|
||||
raw.dnsmasq: port=0
|
||||
security.acls: lincodex-runner
|
||||
security.acls.default.ingress.action: drop
|
||||
security.acls.default.egress.action: drop
|
||||
# Management plane of the labs (checker and console gateway). Lab data links
|
||||
# are separate L2-only bridges created per lab by the provisioner.
|
||||
- name: lxdbr-labmgmt
|
||||
type: bridge
|
||||
config:
|
||||
ipv4.address: 10.81.0.1/24
|
||||
ipv4.nat: "false"
|
||||
ipv6.address: none
|
||||
ipv4.dhcp: "false"
|
||||
raw.dnsmasq: port=0
|
||||
security.acls: lincodex-labmgmt
|
||||
security.acls.default.ingress.action: drop
|
||||
security.acls.default.egress.action: drop
|
||||
profiles:
|
||||
- name: lincodex-runner
|
||||
description: Runner VM, 2 vCPU and 3 GiB (PRD Q11.1)
|
||||
config:
|
||||
limits.cpu: "2"
|
||||
limits.memory: 3GiB
|
||||
limits.memory.enforce: hard
|
||||
security.secureboot: "false"
|
||||
devices:
|
||||
root:
|
||||
type: disk
|
||||
path: /
|
||||
pool: lincodex
|
||||
size: 10GiB
|
||||
eth0:
|
||||
type: nic
|
||||
network: lxdbr-runner
|
||||
- name: lincodex-lab-small
|
||||
description: One lab node, 1 vCPU and up to 768 MiB
|
||||
config:
|
||||
limits.cpu: "1"
|
||||
limits.memory: 768MiB
|
||||
limits.memory.enforce: hard
|
||||
security.secureboot: "false"
|
||||
devices:
|
||||
root:
|
||||
type: disk
|
||||
path: /
|
||||
pool: lincodex
|
||||
size: 4GiB
|
||||
eth0:
|
||||
type: nic
|
||||
network: lxdbr-labmgmt
|
||||
Reference in new issue
Block a user