Issue when installing kubectl on window 10 home

10/2/2019

I'm trying to install kubectl v1.16.0 downloaded from here on my window 10 Home follow the instruction on kubernetes.io, I've added the enviroment variable but when I openning cmd and type kubectl I got the error as picture

and this is the picture after clicked close button

I'm not sure it relates to Window 10 Home or not, anyone have ideas about this?

--
kubectl
kubernetes

1 Answer

10/2/2019

Please make sure you're using the proper binary intended for your system. If you follow the instructions under this link everything should work fine.

If the binary is correct and your system keeps saying access is denied when you try to run it, make sure it is not a permission issue. Try to put it in another folder to which you have full access like your Desktop, Downloads etc.

You can try to run it from command line by providing full path to the binary. If it runs properly it means that you probably don't have sufficient permissions to a folder C:\Windows\system32. It is actually not a good idea to keep your application binaries there as it is a system folder and it is very likely that you may not have sufficient permissions to it as a normal user. More on this folder and its purpose in a Windows system you can read in this article.

You can also refer to this article describing how to fix "Access is denied" issue on Windows 10 but don't do it with C:\Windows\system32 directory. Better put your kubectl binary in other place and add a path to it to your PATH environment variable.

I hope it helps.

-- mario
Source: StackOverflow