You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start a http server on ubuntu2, listen on :192.168.56.108:8080
add a recored in /etc/hosts of ubuntu1, to avoid Could not resolve host: ubuntu2.service: 192.168.56.108 ubuntu2.service
use curl to connect http server from ubuntu1.
the request succeed, but something is wrong accroding to the log:
log of linkerd2-mock-dst:
Nov 02 09:40:12.028 INFO request{headers={"te": "trailers", "content-type": "application/grpc"}}:stream_overrides{dst=Dst { name: "192.168.56.108", port: 8080 }}: linkerd2_mock_dst::destination: Does not exist
It means linkerd-proxy use destination ip and port (192.168.56.108:8080) to do service discovery request, but not domain name in the http header Host(ubuntu2.service:8080).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to run
linkerd-proxy
without kubernetes and docker, and encounterd some problems, any suggestions would be really appreciated.What did I do:
run linkerd2-mock-dst on ubuntu1
./linkerd2-mock-dst --endpoints ubuntu2.servic:8080=192.168.56.108:8080
set iptables rule on ubuntu1(only output direction rules so far):
1001
):start a http server on ubuntu2, listen on :192.168.56.108:8080
add a recored in /etc/hosts of ubuntu1, to avoid
Could not resolve host: ubuntu2.service
:192.168.56.108 ubuntu2.service
use
curl
to connect http server from ubuntu1.the request succeed, but something is wrong accroding to the log:
log of
linkerd2-mock-dst
:log of
linkerd-proxy
:It means linkerd-proxy use
destination ip and port (192.168.56.108:8080)
to do service discovery request, but not domain name in the http headerHost
(ubuntu2.service:8080).Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions