mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 17:24:32 +00:00
- 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
16 lines
1019 B
Bash
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
|