Files
home-kubernetes/docs/kubernetes-extras.md
Jan Novak ed10cc837a chore: add CLAUDE.md, kubectl notes, and settings/gitignore tweaks
Document the repo for Claude Code, note a couple of handy kubectl
one-liners, allow a few more Bash/WebFetch/WebSearch permissions used
during this session, and ignore the relocated zot sync-credentials.json.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 00:05:56 +02:00

14 lines
537 B
Markdown

## kubectl
```bash
# condensed -o wide
kubectl get pods -A -o wide --watch | awk '
/NOMINATED NODE/ { sub(/[[:space:]]+NOMINATED NODE[[:space:]]+READINESS GATES[[:space:]]*$/,""); print; fflush(); next }
{ sub(/[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]*$/,""); print; fflush() }
'
# condensed -o wide
kubectl get pods -A --watch -o custom-columns=\
'NAMESPACE:.metadata.namespace,NAME:.metadata.name,STATUS:.status.phase,RESTARTS:.status.containerStatuses[0].restartCount,IP:.status.podIP,NODE:.spec.nodeName'
```