mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
|
|
|
|
echo "==> Deleting second webservice pod to reduce RAM pressure on gandalf..." && \
|
|
kubectl -n gitea delete pod gitlab-webservice-default-675ccb7b99-mmclp --force --grace-period=0 --ignore-not-found 2>&1
|
|
|
|
echo "==> Waiting 15 min for puma to complete boot on single pod..." && \
|
|
sleep 900
|
|
|
|
echo "==> Webservice puma log:" && \
|
|
kubectl -n gitea logs -l app=webservice -c webservice --tail=5 2>&1 | grep -v LD_PRELOAD | head -8
|
|
|
|
echo "==> Sidekiq log:" && \
|
|
kubectl -n gitea logs -l app=sidekiq --tail=3 2>&1 | grep -v LD_PRELOAD | head -4
|
|
|
|
echo "==> Pod readiness:" && \
|
|
kubectl -n gitea get pods --no-headers | grep -E "webservice|sidekiq" | awk '{print $1,$2,$3}'
|
|
|
|
echo "==> CR conditions:" && \
|
|
kubectl -n gitea get gitlab gitlab \
|
|
-o jsonpath='{range .status.conditions[*]}{.type}: {.status} ({.message}){"\n"}{end}' 2>&1
|
|
|
|
echo "==> Root password (if Available):" && \
|
|
kubectl -n gitea get secret gitlab-gitlab-initial-root-password \
|
|
-o jsonpath='{.data.password}' 2>/dev/null | base64 -d && echo
|