I am testing role differences right now so I have a context for each role setup.
Terminal session Admin, I want to be able to use context Admin
in one session so I can update the rules as needed.
In terminal session User, I want to be able to test that role via its context.
(Note: I am on EKS so roles map to IAM roles)
Well, I am an idiot.
Natively, there is no answer in the --help output for kubectl
; however, there is output for this in the man page.
All one has to do is throw the --context
flag into their command.
However, the below-mentioned kubectx
tool is what I use day to day now.