kubernetes-sigs / krew

📦 Find and install kubectl plugins
https://krew.sigs.k8s.io
Apache License 2.0
6.42k stars 369 forks source link

[krew] gadget plugin installation failure #861

Closed dfgrosso closed 2 months ago

dfgrosso commented 2 months ago

Greetings,

I have installed krew v.0.4.3 on a Windows PC. While trying to install Inspektor Gadget plugin with this command:

kubectl krew install gadget

I got this error:

Updated the local copy of plugin index. Installing plugin: gadget W0902 13:28:46.589971 31268 install.go:164] failed to install plugin "gadget": install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.32.0/kubectl-gadget-windows-amd64-v0.32.0.tar.gz": Get "https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.32.0/kubectl-gadget-windows-amd64-v0.32.0.tar.gz": dial tcp: lookup github.com on 192.168.1.254:53: no such host failed to install some plugins: [gadget]: install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.32.0/kubectl-gadget-windows-amd64-v0.32.0.tar.gz": Get "https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.32.0/kubectl-gadget-windows-amd64-v0.32.0.tar.gz": dial tcp: lookup github.com on 192.168.1.254:53: no such host Error: exit status 1

Thanks

dfgrosso commented 2 months ago

Nevermind. It seems like my ISP's connection had a manually set DNS server (8.8.8.8) and the install script (git client maybe) is assuming the DNS server is available at the default gw IP. Setting the DNS server for DHCP in my WAN connection solved the issue.

ahmetb commented 2 months ago

/kind support /close

k8s-ci-robot commented 2 months ago

@ahmetb: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/krew/issues/861#issuecomment-2325022290): >/kind support >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.