mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
19 lines
896 B
Bash
19 lines
896 B
Bash
#!/usr/bin/env bash
|
|
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
|
|
|
|
echo "==> kgqhl previous crash log (webservice container):" && \
|
|
kubectl -n gitea logs gitlab-webservice-default-675ccb7b99-kgqhl \
|
|
-c webservice --previous --tail=25 2>&1 | grep -v LD_PRELOAD | head -25
|
|
|
|
echo "==> New pod 4pvtw puma log:" && \
|
|
kubectl -n gitea logs gitlab-webservice-default-675ccb7b99-4pvtw \
|
|
-c webservice --tail=5 2>&1 | grep -v LD_PRELOAD | head -6
|
|
|
|
echo "==> Sidekiq crash count + last state:" && \
|
|
kubectl -n gitea get pod gitlab-sidekiq-all-in-1-v2-679848bc8-wvxln \
|
|
-o jsonpath='{.status.containerStatuses[0].restartCount} restarts, last exit: {.status.containerStatuses[0].lastState.terminated.reason}{"\n"}' 2>&1
|
|
|
|
echo "==> Sidekiq previous log:" && \
|
|
kubectl -n gitea logs gitlab-sidekiq-all-in-1-v2-679848bc8-wvxln \
|
|
--previous --tail=15 2>&1 | grep -v LD_PRELOAD | tail -15
|