prole/tmp/final_status.sh

21 lines
679 B
Bash

#!/usr/bin/env bash
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
echo "==> All GitLab pods:"
kubectl -n gitea get pods --no-headers \
| grep -v jemalloc-builder | grep -v Completed | sort
echo "==> Webservice logs (last 5 lines):"
kubectl -n gitea logs -l app=webservice -c webservice \
--tail=5 2>&1 | grep -v LD_PRELOAD | head -8 || true
echo "==> Sidekiq pod:"
kubectl -n gitea get pod -l app=sidekiq --no-headers 2>&1
echo "==> GitLab CR phase:"
kubectl -n gitea get gitlab gitlab -o jsonpath='{.status.phase}' 2>&1 && echo
echo "==> Node memory (gandalf):"
kubectl describe node gandalf.knoe.org 2>&1 \
| grep -A3 "Allocated resources" | tail -4