kubectl-fzf icon indicating copy to clipboard operation
kubectl-fzf copied to clipboard

SSH/Rsync error on tabbing the pods

Open vakker opened this issue 5 years ago • 4 comments

When I type kubectl get <tab> it shows me the right list of resources, I select pods and tab again for the exact pods when I get:

ssh: Could not resolve hostname rsync: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]

But the process does succeed, I get the right pod name and everything works, except there's that error message. I.e. after selecting the pod name I end up with:

$ kubectl get pods ssh: Could not resolve hostname rsync: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]
 argo-ui-5799bcf744-l8hqb -n argo 
NAME                       READY   STATUS        RESTARTS   AGE
argo-ui-5799bcf744-l8hqb   1/1     Terminating   0          9d

Same happens for other resources as well.

I'm on Ubuntu, using Zsh with Zplug and locally running cache_builder.

vakker avatar Dec 27 '19 10:12 vakker

The autocompletion check if there's a kubectl-fzf pod running and rsync from it.

Can you check if you don't have a pod running with kubectl get endpoints -l app=kubectl-fzf --all-namespaces? What's the value of cat $KUBECTL_FZF_CACHE/$(kubectl config current-context)_cache_endpoint?

bonnefoa avatar Dec 28 '19 09:12 bonnefoa

Thanks for the reply. I don't have a pod running, I followed the local version instructions that just writes the cache locally.

vakker avatar Dec 28 '19 10:12 vakker

Hi @bonnefoa, same thing happening here. I've installed the local version too.

The output of cat $KUBECTL_FZF_CACHE/$(kubectl config current-context)_cache_endpoint is No services found

delucca avatar Jan 28 '20 17:01 delucca

Should be fixed with https://github.com/bonnefoa/kubectl-fzf/commit/f2a66fdf69f1551cec8b1ae7d048e27449a2fc64

bonnefoa avatar Mar 30 '20 06:03 bonnefoa

kubectl-fzf is not using rsync anymore, closing it.

bonnefoa avatar Aug 31 '22 06:08 bonnefoa