Public Notes
- Generate an SSH key (without passphrase)
ssh-keygen -t rsa -b 4096 -N "" -C "email@example.com" -f ~/.ssh/id_rsa
- Keep git credentials for a week
git config --global credential.helper "cache --timeout=604800"
- Pods with highest CPU consumption (Prometheus Query)
topk(10, sum by (namespace, pod) (
rate(container_cpu_usage_seconds_total{container!="",pod!=""}[5m])
))
- cluster-wide, sorted by current CPU (millicores)
kubectl top pod -A --sort-by=cpu