Hacker News new | ask | show | jobs
by rtempaccount1 2168 days ago
kube-ps1, kubectx and kubens can help quite a bit here. kube-ps1 to give you a visual indication of current context and the others to make switching easier.

You can also explicitly add namespaces to manifests, which help avoid applying to the wrong namespace.

1 comments

While kube-ps1 helps, remember that the context is set session-wide. So even if your last command says "development" in one terminal, another terminal may have modified the context by now.

So make sure to spam the return key before deleting stuff :D

Agreed, FWIW this should be a habit for any PS1-modifiers (like git repo status)