Switching environments should be instant, clear, and safe. AWS CLI-style profiles in K9s make that possible. They let you jump between Kubernetes contexts with the same muscle memory you already use for AWS CLI profiles. No fumbling with endless kubectl config use-context commands. No guessing which cluster you’re on.
With K9s profiles, you can define clear, named shortcuts for every environment—dev, staging, prod—just like the profiles in your AWS configuration. Add them once, save them, and they’re always ready. It turns cluster management from a risky guessing game into a deliberate act.
Here’s the simple recipe:
- Create distinct K9s
config.ymlprofiles for each environment, naming them after your target contexts. - Keep credentials and namespaces paired with the right cluster in each profile.
- Switch instantly with
--contextor--profile, and confirm your active profile in the UI before acting.
This setup keeps your work fast and your operations guarded. There’s no chance to accidentally run destructive commands on the wrong namespace. You can step into any project’s cluster with zero friction, then get out just as fast.