Search code examples
windowskuberneteskubectlpermission-deniedaccess-denied

kubectl not working on my windows 10 machine


When I try to run any kubectl command including kubectl version, I get a pop-up saying "This app can't run on your PC, To find a version for your PC, check with the software publisher" when this is closed, the terminal shows "access denied"

The weird thing is, when I run the "kubectl version" command in the directory where I have downloaded kubectl.exe, it works fine.

I have even added this path to my PATH variables.


Solution

  • thank you for the answer, @rally

    apparently, in my machine, it was an issue of administrative rights during installation. My workplace's IT added the permission and it worked for me.

    Adding this answer here so that if anyone else comes across this problem they can try this solution as well.