curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/togettoyou/kubectl-lazy/main/install.sh | bash
Or you can specify the version:
curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/togettoyou/kubectl-lazy/main/install.sh | bash -s -- -v 0.0.1
kubectl lazy
Or you can specify kubeconfig:
kubectl lazy -kubeconfig /root/.kube/config
Enable the pprof debug mode:
kubectl lazy -pprof 8888
curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/togettoyou/kubectl-lazy/main/uninstall.sh | bash
- pod infos
- pod events
- pod logs