Using consul http-api the service mesh way

Hello everyone,

I want to use consul-http-api over the service mesh way. I am new to consul-connect-service mesh, so i started with this tutorial. Communication between static-server and client works, intentions also. But how can i access the consul-http-api this way, for example the kv?

On the static-client i expect to call
curl http://consul:8500/v1/kv/foo/bar
or
curl http://localhost:8500/v1/kv/foo/bar (if i use the upstream annoation syntax)
but this does not work.

I can connect via curl http://consul-server.consul:8500/v1/kv/foo/bar or over
the k8-node-ip.

But i thought i can access the http-api directly.

1 Like

Found a possible solution at Stackoverflow.

If someone has a better please let me know.