HNHacker News
TopNewBestAskShowJobs

forestgagnon

2 karma · joined July 5, 2021

submissionscomments
forestgagnon··on Everything useful I know about kubectl
I wrote a convoluted tool for this problem which isolates kubectl environments in docker containers: https://github.com/forestgagnon/kparanoid.

This approach allows the convenience of short, context-free commands without compromising safety, because the context info in the shell prompt can be relied on, due to the isolation.

There are some things which don't work well inside a docker container (port-forwarding for example), but it does make it simple to have isolated shell history, specific kubectl versions, etc.