Hacker News new | ask | show | jobs
by lukaslalinsky 637 days ago
I also got burned by this, pretty badly, and ever since it happened, I don't even have a default kubeconfig, have to specify it for every single kubectl run.
2 comments

I never even set up a default context. I sussed out that problem from the get-go and always use `--context`. But that's not really enough if you use shell history, or if your clusters differ in few letters that are easy to typo.
This is the way. Same for awscli profiles.