Better HN
topnewbestaskshowjobs
Log inSign up

forestgagnon

2 karma · joined Jul 5, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

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.