Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS lookups fail #6

Open
revero-doug opened this issue Oct 12, 2022 · 0 comments
Open

DNS lookups fail #6

revero-doug opened this issue Oct 12, 2022 · 0 comments

Comments

@revero-doug
Copy link

Issue Summary

After following the README instructions on my MacBook Pro (14-inch, 2021) with an M1 Pro chip, targeting a minikube cluster running locally with defaults configured, sshuttle is able to connect to the python containing pod (c : Connected to server.), but when trying to resolve host "echo-echo-server" (helm install echo ealenn/echo-server), I get curl: (6) Could not resolve host: echo-echo-server, and attempts to browse the public internet also fail. I suspect this issue may be related to this old telepresence issue affecting using sshuttle with minikube k8s clusters.

Commands run for reference

sshuttle install

brew install sshuttle
sshuttle --version # 1.1.1

echo server install

helm repo add ealenn https://ealenn.github.io/charts
helm repo update
helm install echo ealenn/echo-server

jumpbox (kuttle pod) run

kubectl run jumpbox --image=alpine:latest --restart=Never -- sh -c 'apk add python3 --update && exec tail -f /dev/null'

in-cluster test with curl

run curl-client pod

kubectl run curl-client --restart=Never --image=alpine:latest -- sh -c 'apk add curl --update && tail -f /dev/null'

exec test curl command

kubectl exec curl-client -- curl --header 'X-ECHO-BODY: cool' echo-echo-server 2>/dev/null
# output: cool

sshuttle command

sshuttle --dns -r jumpboxx -e kuttle 0.0.0.0/0
# output: c : Connected to server.

NOTE: I also tried -N instead of 0.0.0.0/0 to the same effect

local curl test

curl --header 'X-ECHO-BODY: coolcoolcool' echo-echo-server
# output: curl: (6) Could not resolve host: echo-echo-server

also note that attempts to visit e.g. google.com in a local web browser failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant