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>
17 lines
590 B
Bash
Executable File
17 lines
590 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Create the kwok scale cluster (idempotent).
|
|
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
|
|
|
|
require kwokctl
|
|
require kubectl
|
|
|
|
if kwokctl get clusters 2>/dev/null | grep -qx "$KRUST_SCALE_CLUSTER"; then
|
|
echo "cluster '$KRUST_SCALE_CLUSTER' already exists"
|
|
else
|
|
echo "creating cluster '$KRUST_SCALE_CLUSTER' (runtime: $KRUST_SCALE_RUNTIME) ..."
|
|
kwokctl create cluster --name "$KRUST_SCALE_CLUSTER" --runtime "$KRUST_SCALE_RUNTIME"
|
|
fi
|
|
|
|
echo "apiserver health: $(kubectl --context "$KRUST_SCALE_CONTEXT" get --raw=/healthz 2>&1)"
|
|
echo "context: $KRUST_SCALE_CONTEXT"
|