krew: Krew installation fails on Windows 10
I followed the instructions in the readme to install Krew on Windows. I get the following error:
PS > .\krew-windows_amd64.exe install --manifest=..\krew.yaml --archive=..\krew
.zip
Installing plugin: krew
W0228 10:58:55.052380 158104 install.go:132] failed to install plugin "krew": failed to create a symlink form "C:\\Users\\my-user\\.krew\\bin" to "C:\\Users\\my-user\\.krew\\bin\\kubectl-krew.exe":
symlink C:\Users\my-user\.krew\store\krew\57788e8c7af1b5b000954455aa9ca2e4a18a50a020faf54d18a3ccf79ad04049\krew.exe C:\Users\my-user\.krew\bin\kubectl-krew.exe:
A required privilege is not held by the client.
F0228 10:58:55.182669 158104 root.go:52] failed to install some plugins: [krew]
I also tried with .\krew-windows_amd64.exe install --manifest="C:\Development\K8s\krew\krew.yaml" --archive="C:\Development\K8s\krew\krew.zip"
, same error.
Is there anything I’m missing?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 19 (8 by maintainers)
A quick follow up.
If I run krew-install in an administrative powershell prompt, it installs but I get the same
not supported by windows
error@ahmetb There’s not much to talk about with
kubectl krew update
What’s interesting, is this seems to be intermittent? but once the
cannot allocate memory
error appears for a particular command, I have to restart WSL to clear it (I’ve not seen it recover without restarting WSL)Here’s a strace of
kubectl krew list
working as we would expect, I’ve split it into 2 for brevitythe
write()
wasF0306 10:30:42.002159 18 root.go:52] krew local plugin index is not initialized (run "kubectl krew update")
If I run
kubectl krew list
for a second time, I getcannot allocate memory
as for running on Windows directly…
c:\tools\kubectl-krew.exe
k version --client Client Version: version.Info{Major:“1”, Minor:“13”, GitVersion:“v1.13.0”, GitCommit:“ddf47ac13c1a9483ea035a79cd7c10005ff21a6d”, GitTreeState:“clean”, BuildDate:“2018-12-03T21:04:45Z”, GoVersion:“go1.11.2”, Compiler:“gc”, Platform:“windows/amd64”}
PS C:\Users\jonwa> k krew --help not supported by windows PS C:\Users\jonwa> k krew help not supported by windows PS C:\Users\jonwa> k krew list not supported by windows PS C:\Users\jonwa> k krew install not supported by windows
😕
opened https://github.com/kubernetes/kubectl/issues/603 . it also repros with the example foo plugin
@jon-walton do you mind opening an issue to https://github.com/kubernetes/kubectl with a minimal repro with one of those plugins (ideally without mentioning krew, since it’s not a krew issue).