Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'll toss my "works on my machine" hat in the ring with two things that I have found invaluable in combination with iTerm2's tmux integration:

- env KUBECONFIG=$HOME/.kube/setup-1 tmux new -s setup1

- teamocil: https://github.com/remi/teamocil#readme (MIT)

The first one I use for circumstances where I want to investigate a lot of different things in a dedicated cluster, without the hassle of having $(kubectl --kubeconfig ...) or the risk of k() { kubectl --kubeconfig ... "$@"; } and losing track of what context I'm in[1]. Because, with iTerm2's integration command-n or command-t opens a new window or tab but with retaining the credential scoping. If I need to change scopes, I can just detach from the tmux session, attach to a different one, confident that I don't have any variables to unset

The second I use in "standard" setups where I want to view the same configuration every day (say: web, api, database pods). Having teamocil allows me to either have those same commands laid out in the same pattern as yesterday, or I've also had pretty good luck just generating the yaml files because their syntax is simple enough

1: related to that, if you haven't seen it, iTerm2 offers the ability to set the RGB of a tab via OSC: https://iterm2.com/documentation-escape-codes.html#:~:text=t...



you seen kubie? `kubie ctx` is great for avoiding the first issue

https://github.com/sbstp/kubie




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

Search: