Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment
Application / verify (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Vladislav Agapov
2026-10-15 17:09:26 +03:00
parent 65003b6119
commit b90581f613
184 changed files with 15853 additions and 56 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
# Reconnect the loopback tunnel after the API pod is replaced during restart tests.
set -eu
: "${KUBE_CONTEXT:=dev}" "${NAMESPACE:=highload-applications}"
LOCAL_PORT=${LOCAL_PORT:-8080}
child=
cleanup() {
if [ -n "$child" ]; then
kill "$child" 2>/dev/null || true
wait "$child" 2>/dev/null || true
fi
exit 0
}
trap cleanup INT TERM
while :; do
kubectl --context "$KUBE_CONTEXT" -n "$NAMESPACE" port-forward service/api "$LOCAL_PORT:8080" --address 127.0.0.1 &
child=$!
wait "$child" || true
child=
sleep 1
done