prole/tmp/check_jemalloc_exists.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

24 lines
922 B
Bash

#!/usr/bin/env bash
set -euo pipefail
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
for node in gandalf.prole.org merlin.prole.org myrddin.prole.org pi.prole.org; do
safe="${node//./-}"
echo -n "==> $node: "
kubectl -n gitlab run "jv2-${safe}" \
--image=ubuntu:22.04 --restart=Never --rm --attach --quiet \
--overrides="{
\"spec\":{
\"nodeName\":\"${node}\",
\"tolerations\":[{\"operator\":\"Exists\"}],
\"volumes\":[{\"name\":\"jlib\",\"hostPath\":{\"path\":\"/opt/gitlab-jemalloc\",\"type\":\"DirectoryOrCreate\"}}],
\"containers\":[{
\"name\":\"c\",
\"image\":\"ubuntu:22.04\",
\"command\":[\"bash\",\"-c\",
\"test -f /jlib/libjemalloc.so.2 && ls -lh /jlib/libjemalloc.so.2 || echo MISSING\"],
\"volumeMounts\":[{\"name\":\"jlib\",\"mountPath\":\"/jlib\"}]
}]
}}" 2>&1 || true
done