This guide explains how to use the helper scripts underDocumentation Index
Fetch the complete documentation index at: https://docs.katakate.org/llms.txt
Use this file to discover all available pages before exploring further.
utils/.
Wipe a disk for thin‑pool provisioning
Script:utils/wipe-disk.sh
Usage
YES to proceed. The script will:
- Remove filesystem signatures (
wipefs -a) - Zap the partition table (
sgdisk --zap-all) - Zero the beginning and end of the disk (
dd) - Attempt block discard (
blkdiscard) if supported
wipefs, sgdisk, and blkdiscard; run as root or via sudo.
High‑density CPU/memory stress test
Script:utils/stress_test.sh
This script launches many sandboxes to validate CPU limit enforcement and observe resource behavior.
What it does
- Creates namespace
stress-test - Generates
k7-stress-*.yamlfiles, each with:before_scriptthat installsstress-ngandhtopviaapk- CPU and memory limits per sandbox
- Launches sandboxes in batches (default 50 total, batches of 10)
- Sets up a cleanup trap on Ctrl+C to delete resources and namespace
COUNT=50NAMESPACE="stress-test"CPU_LIMIT="300m"MEM_LIMIT="2Gi"STRESS_MEM="1500M"
Run
- The generated YAML uses Alpine and installs packages in
before_script. Ensure the container can runapk(i.e., not forced non‑root during setup). If you enforce strict non‑root, consider prebuilding an image with dependencies. - Ensure your node(s) have sufficient CPU/RAM to handle the configured load.
