Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Getting kubectl config use-context error when trying to switch context

$
0
0

When I am trying to switch kubectl configuration using "kubectl config use-context new-context" where new-context is my desired context, I am getting the following error on my Mac machine:

error: open some-context.lock: file exists

where some-context is another kubectl configuration. However, some-context is not the active context. I see the same error when try "kubectl config set-context new-context" as well.

How can I fix the issue? I am using MacOS Mojava, version: 10.14.6.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>