0

If I run kubectl get svc, it seems to be the same across terminal sessions - how can use a local configuration that's only loaded for my current terminal session?

If the answer is a local config file and using KUBECONFIG env var to point to it, then how can I generate a local config file? If I use:

export KUBECONFIG=`dirname "$BASH_SOURCE"/conf`
aws eks update-kubeconfig --profile=alex --name ignitecluster

I get this error:

Content not a dictionary.

1 Answer 1

1

Set the KUBECONFIG environment variable with a value that includes the relevant Kubernetes configuration file, the environment variable only applies to your current session/window.

2
  • nice but about the same config file in .kube/config but a different configuration in that file? May 6, 2019 at 20:21
  • I updated the OP with more details, ty May 6, 2019 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.