prole/tmp/verify_jemalloc.sh
chrisfu b4fc5641db checkpoint: sanitize prole config for host portability
- fix conf/prod/prole.cfg by replacing hardcoded /Users/chrisfu paths with /Users/chrisfu

- remove injected [update.sh] log lines and stray password artifacts so config is executable

- include latest pending updates across deployment config, UI/core flow, vault/network artifacts, and helper scripts
2026-04-10 05:58:40 -07:00

16 lines
1019 B
Bash

#!/usr/bin/env bash
set -euo pipefail
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
NODES=(gandalf.prole.org merlin.prole.org myrddin.prole.org pi.prole.org)
for node in "${NODES[@]}"; do
safe="${node//./-}"
echo "==> Checking $node ..."
kubectl -n gitlab run "jcheck-${safe}" \
--image=ubuntu:22.04 \
--restart=Never \
--overrides="{\"spec\":{\"nodeName\":\"${node}\",\"tolerations\":[{\"operator\":\"Exists\"}],\"volumes\":[{\"name\":\"jlib\",\"hostPath\":{\"path\":\"/opt/gitlab-jemalloc\",\"type\":\"DirectoryOrCreate\"}}],\"containers\":[{\"name\":\"jcheck-${safe}\",\"image\":\"ubuntu:22.04\",\"command\":[\"bash\",\"-c\",\"ls -lh /jlib/ 2>&1 && od -A x -t x1z /jlib/libjemalloc.so.2 2>/dev/null | grep -c 'musl' || true; strings /usr/bin/ls 2>/dev/null | head -1 || true; readelf -d /jlib/libjemalloc.so.2 2>/dev/null | grep NEEDED || echo no-readelf\"],\"volumeMounts\":[{\"name\":\"jlib\",\"mountPath\":\"/jlib\"}]}]}}" \
--attach --rm --timeout=30s 2>&1 || true
done