52 lines
2.3 KiB
YAML
52 lines
2.3 KiB
YAML
# services/maintenance/pi-usb-scratch-configmap.yaml
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: pi-usb-scratch-config
|
|
namespace: maintenance
|
|
data:
|
|
usb_scratch.env: |
|
|
USB_SCRATCH_DEFAULT_ENABLED=true
|
|
# Leave empty to avoid label-based fallback selection.
|
|
USB_SCRATCH_DEFAULT_LABEL=
|
|
USB_SCRATCH_DEFAULT_FSTYPE=ext4
|
|
USB_SCRATCH_MOUNTPOINT=/mnt/astraios
|
|
# Auto-select the removable 64GB USB partition on each worker.
|
|
USB_SCRATCH_AUTO_SELECT_REMOVABLE=true
|
|
USB_SCRATCH_AUTO_MIN_SIZE_GIB=50
|
|
# One-time bootstrap for new sticks that ship exfat/fat32.
|
|
USB_SCRATCH_AUTO_FORMAT_REMOVABLE=true
|
|
USB_SCRATCH_AUTO_FORMAT_LABEL=astraios
|
|
# Keep this false to avoid long rsync hangs on k3s runtime trees.
|
|
USB_SCRATCH_SEED_K3S_AGENT_DIRS=false
|
|
# Keep /tmp in RAM to reduce SD-card writes.
|
|
USB_SCRATCH_ENFORCE_TMPFS_TMP=true
|
|
USB_SCRATCH_REQUIRED_FREE_GIB=20
|
|
USB_SCRATCH_RECONCILE_INTERVAL_SEC=900
|
|
# Keep this at 0 so the initial cluster-wide cutover completes quickly.
|
|
USB_SCRATCH_CUTOVER_JITTER_MAX_SEC=0
|
|
usb_scratch_inventory.tsv: |
|
|
# node_name enabled match_kind match_value fstype
|
|
# match_kind: uuid | label | device
|
|
# Astraios policy:
|
|
# - use UUID entries per worker node (preferred)
|
|
# - avoid shared labels to prevent accidental wrong-device mounts
|
|
# - mountpoint is /mnt/astraios on every worker node
|
|
# Example:
|
|
# titan-04 true uuid 11111111-2222-3333-4444-555555555555 ext4
|
|
# titan-05 true uuid <uuid-for-titan-05-astraios> ext4
|
|
# titan-06 true uuid <uuid-for-titan-06-astraios> ext4
|
|
# titan-07 true uuid <uuid-for-titan-07-astraios> ext4
|
|
# titan-08 true uuid <uuid-for-titan-08-astraios> ext4
|
|
# titan-09 true uuid <uuid-for-titan-09-astraios> ext4
|
|
# titan-10 true uuid <uuid-for-titan-10-astraios> ext4
|
|
# titan-11 true uuid <uuid-for-titan-11-astraios> ext4
|
|
# titan-12 true uuid <uuid-for-titan-12-astraios> ext4
|
|
# titan-13 true uuid <uuid-for-titan-13-astraios> ext4
|
|
# titan-14 true uuid <uuid-for-titan-14-astraios> ext4
|
|
# titan-15 true uuid <uuid-for-titan-15-astraios> ext4
|
|
# titan-16 true uuid <uuid-for-titan-16-astraios> ext4
|
|
# titan-17 true uuid <uuid-for-titan-17-astraios> ext4
|
|
# titan-18 true uuid <uuid-for-titan-18-astraios> ext4
|
|
# titan-19 true uuid <uuid-for-titan-19-astraios> ext4
|