Local high-scale harness (scripts/scale/) using kwok to simulate large clusters with near-zero compute: fake nodes report huge capacity and fake pods reach Running instantly. - up/down: create/delete the kwok cluster (docker runtime) - load: 20 nodes, 20 namespaces, 10,000 pods (+ rs/svc/cm/secrets), tunable via KRUST_* env vars (total = NAMESPACES * DEPLOYS_PER_NS * REPLICAS) - contexts: generate a 20-context kubeconfig (distinct default namespaces) to exercise multi-context / warm-context paths against one apiserver - churn: rolling deployment restarts at a configurable rate - gitignore the generated kubeconfig (embeds kwok cluster certs) Used to capture the stable-release performance baselines. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
471 B
Bash
Executable File
15 lines
471 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tear down the kwok scale cluster and generated kubeconfig.
|
|
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
|
|
|
|
require kwokctl
|
|
|
|
if kwokctl get clusters 2>/dev/null | grep -qx "$KRUST_SCALE_CLUSTER"; then
|
|
echo "deleting cluster '$KRUST_SCALE_CLUSTER' ..."
|
|
kwokctl delete cluster --name "$KRUST_SCALE_CLUSTER"
|
|
else
|
|
echo "cluster '$KRUST_SCALE_CLUSTER' not found"
|
|
fi
|
|
|
|
rm -f "$KRUST_SCALE_KUBECONFIG" && echo "removed $KRUST_SCALE_KUBECONFIG" || true
|