Can not get Kubectl context on Gitlab runner

12/23/2020

I had a problem with Gitlab Runner and Kubectl, I can get and set Kubectl context on my local machine kubectl config use ${context_name} => Switched to context ${context_name}.

But when I created a Gitlab Shell executor and run switch context command like kubectl config use ${context_name}, I got the error error: no context exists with the name: {context_name}

I'm using Windows 10, any suggestion for this? Thanks

-- Việt Dương
gitlab
kubernetes

0 Answers