4 ms·
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. Y
by rtempaccount1 6y 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.
- jdellinger 6y agoWhile 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
- minaguib 6y agoAgreed, FWIW this should be a habit for any PS1-modifiers (like git repo status)