scripts: the rollout and the upstream-key helpers, with the runbook note

shorashim-rollout: restart, wait for 3/3, two consecutive 200s.
upstream-key-set: store a caller's model key for the gate scenario
without echoing it. KOHEN "Rolling out".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Scott KarpandClaude Fable 5.1 committed 2026-10-13 21:23:48 +00:00
1 parent a852331332
commit b1c8358f8b
3 files changed
+27

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Roll out the shorashim deployment and wait for 3/3 + two consecutive 200s (memory lesson).
set -e
export KUBECONFIG=$HOME/.kube/exoscale-temple-council.yaml
kubectl -n shorashim rollout restart deployment/shorashim
kubectl -n shorashim rollout status deployment/shorashim --timeout=300s
kubectl -n shorashim get pods | grep shorashim-
for i in 1 2; do sleep 5; curl -s -o /dev/null -w "%{http_code} " http://185.19.28.170/kodesh/health; done; echo
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Store the caller's model key for the gate scenario: asks for it without echo, writes 0600.
set -e
read -rsp "Anthropic key (not echoed): " KEY; echo
[ -n "$KEY" ] || { echo "empty — nothing written"; exit 1; }
install -m 600 /dev/null ~/.config/shorashim/upstream_keys
printf 'anthropic %s\n' "$KEY" > ~/.config/shorashim/upstream_keys
echo "written ~/.config/shorashim/upstream_keys (0600)"