mirror of
https://gitlab.com/deepcypher/dc-kc.git
synced 2026-01-27 11:12:08 +00:00
Added rook-ceph log scraper
This commit is contained in:
12
utils/rook-ceph-logs.sh
Executable file
12
utils/rook-ceph-logs.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# https://rook.io/docs/rook/latest/Storage-Configuration/Advanced/ceph-configuration/#log-collection
|
||||
for p in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[*].metadata.name}')
|
||||
do
|
||||
for c in $(kubectl -n rook-ceph get pod ${p} -o jsonpath='{.spec.containers[*].name}')
|
||||
do
|
||||
echo "BEGIN logs from pod: ${p} ${c}"
|
||||
kubectl -n rook-ceph logs -c ${c} ${p}
|
||||
echo "END logs from pod: ${p} ${c}"
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user