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>
14 lines
537 B
Markdown
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'
|
|
|
|
``` |