GithubHelp home page GithubHelp logo

Comments (5)

thisisnotashwin avatar thisisnotashwin commented on June 29, 2024

hey @Shige99011

In the above case, the IP that the service is registered with Consul has to be the NodeIP (using node ports) and not the cluster IP. That is because there is no way currently for Consul to route traffic to the service. Mesh Gateways currently only work on a Consul federation (in which case you have multiple Consul Servers in different datacenters that are federated together).
I think the above deployment pattern might be unsupported otherwise. 😞

from consul-helm.

Shige99011 avatar Shige99011 commented on June 29, 2024

Thanks @thisisnotashwin for the info.

So without any routing, I tried to directly access from the service on Node A to the service on Node B via sidecar proxy but it didn't work. Is this expected too?
In this case, it needs to specify the IP of Node B and port(NodePort) to access to the service on Node B, correct? That has worked, I confirmed btw.

on the other hand,
If both nodes have datacenter and run as consul server, the direct access via sidecar proxy works with mesh gateway, right? I saw the feature in the document.

Thanks for your help.

from consul-helm.

thisisnotashwin avatar thisisnotashwin commented on June 29, 2024

In this case, it needs to specify the IP of Node B and port(NodePort) to access to the service on Node B, correct? That has worked, I confirmed btw.

Exactly!! it would need to communicate with the other service with it's public IP

If both nodes have datacenter and run as consul server, the direct access via sidecar proxy works with mesh gateway, right? I saw the feature in the document.

bingo!! you can federate those consul clusters and use the mesh gateways to communicate using them!!

from consul-helm.

Shige99011 avatar Shige99011 commented on June 29, 2024

Ok, I confirmed it works with the federation and mesh gateway instead of my first deployment pattern. The communication works via sidecar proxy between the nodes!
However I would like to confirm that my first deployment pattern is really not supported.

No problems if it is not supported of course but I just want reliable information because:
On Consul UI of Node A, I could see Node B and the service on Node B. Also the topology from the service on Node A to the service on Node B seemed to be indicated correctly. So I concern that there is just any lack of my configuration for my first deployment pattern.

Thanks for any help.

from consul-helm.

Shige99011 avatar Shige99011 commented on June 29, 2024

Anyway, I confirmed that the cluster consist of multi nodes works to communicate via sidecar proxy beyond the node without mesh gateway and federation.
To make it, I just configured a kubernetes cluster by multi nodes before Consul configuration. For the my first case, I didn't it. And deployed each pod with node specific by using nodeSelector. That's it.

from consul-helm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.