Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Kk – A tiny Bash CLI that makes kubectl faster (github.com/heart)
2 points by nkheart 7 days ago | hide | past | favorite | discuss
I built "kk", a small Bash wrapper around kubectl that makes common Kubernetes workflows faster. It's not a plugin or a compiled binary. It's just a single script you can drop into ~/bin.

The goal is to reduce repetitive kubectl patterns without replacing kubectl itself.

Some things it helps with: - pod selection by substring (auto-fzf if available) - multi-pod logs with prefixing and grep support - quick exec into pods - checking the actual images running in pods - restarting deployments with pattern matching - port-forwarding with pod auto-selection - quick describe/top/events - context switching shortcuts

Examples:

    kk pods api
    kk sh api
    kk logs api -f -g ERROR
    kk images api
    kk restart api
    kk pf api 8080:80
    kk desc api
    kk top api
    kk events
    kk ctx
    kk deploys
Installation:

    curl -o ~/bin/kk https://raw.githubusercontent.com/heart/kk-Kubernetes-Power-Helper-CLI/main/kk
    chmod +x ~/bin/kk
Repo: https://github.com/heart/kk-Kubernetes-Power-Helper-CLI

Happy to hear feedback, suggestions, or ideas for small helpers to improve the kubectl experience.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: