I hereby claim:
- I am martibutler on github.
- I am martibutler (https://keybase.io/martibutler) on keybase.
- I have a public key ASDwJKOeRhjgs3042AS6M1wmQa8aGdXrYB8scM9GRitysAo
To claim this, I am signing this object:
kubectl get po --all-namespaces | awk '{if ($4 ~ /Error/ && $1 ~ /^fe-/) system ("kubectl -n " $1 " logs -f "$2)}' |
<?php | |
$errorPods = `kubectl get pods -o wide --sort-by="{.spec.nodeName}" --all-namespaces | grep Error`; | |
$lines = explode("\n",trim($errorPods)); | |
foreach ($lines as $line) { | |
$bits = explode(" ",preg_replace("/[\ ]+/"," ",$line)); | |
echo "Starting NS ".$bits[0]." and POD ".$bits[1]."\n"; | |
$cmd = "kubectl -n ".$bits[0]." logs -f ".$bits[1]; |
I hereby claim:
To claim this, I am signing this object: