Questions tagged [consul]

Consul is one of the HashiCorp tools that is used for service discovery, configuration and orchestration.

Features:

  • Service Discovery
  • Health Checking
  • Key/Value Store
  • Multi Datacenter
50 questions
1
vote
1 answer

Load balancing prefer own subnet / availability zone first

I have 3 front end boxes that are each in their own availability zone. They all 3 run a reverse proxy server (in this case traefik). How can I keep the traffic within the AZ to avoid the inter AZ transfer costs. I'm using consul and nomad to handle…
Botto
  • 231
  • 1
  • 10
1
vote
0 answers

How can I route public external traffic to consul?

I've setup consul, and can now internaly resolve service hostnames to the appropriate IP. For example: dig @127.0.0.1 -p 8600 tickethub.service.consul ; <<>> DiG 9.12.3-P1 <<>> @127.0.0.1 -p 8600 tickethub.service.consul ; (1 server found) ;;…
Chris Stryczynski
  • 1,566
  • 2
  • 20
  • 25
1
vote
0 answers

Running HA Consul in two datacenters

One of my clients would like to run consul in two datacenters. Both datacenters Berlin and Frankfurt should result in a High Availability setup, where one datacenter can be taken offline or die without affecting the other datacenter. Both…
Lars
  • 486
  • 5
  • 21
1
vote
1 answer

consul proxy socket connection failed

agent: Check "service:socat-proxy" socket connection failed: dial tcp 127.0.0.1:20108: connect: connection refused It works in -dev mode but in normal server mode I get the above error? No clue where to start. Everything else seem to be working…
Gert Cuykens
  • 143
  • 1
  • 9
1
vote
0 answers

How to configure dynamic routing of gRPC requests with envoy, nomad and consul

We use nomad to deploy our applications - which provide gRPC endpoints - as tasks. The tasks are then registered to Consul, using nomad's service stanza. The routing for our applications is achieved with envoy proxy. We are running central envoy…
DaDaDom
  • 532
  • 6
  • 17
1
vote
1 answer

Howto Seed / Export Consul-backed Vault Store?

I can see howto seed / export data into and out of consul, at least using the HTTP interface (see here (or even here)). But how do you seed / export a consul-backed vault store? The only way I can see is to vault write secret/foo value=bar. And I'm…
Frye
  • 253
  • 2
  • 3
  • 11
1
vote
1 answer

Consul service discovery - it is possible to return 1 host only?

I am building a cloud stack using consul for service discovery, but I've hit a wall, so I ask the people of internet about that. What I do want to do is registering a service in consul from multiple hosts, but return only one of them for all of the…
banyek
  • 399
  • 1
  • 10
1
vote
1 answer

Zero downtime deployment with two machines and docker-networking

Is it possible to wire up a small zero downtime deployment (*1) with two Amazon EC2 instances? I'd like to roll my services regularly to a new EC2 instance to avoid manual OS updates on the instances itself. EC2-1: application serivces EC2-2:…
1
vote
1 answer

istio gateway, not loading the node application

I have tried to deploy a sample nginx app and it working. So, I replaced the same with another nodejs as this contains mutliple sub pages. So, I can test the routing. Here, with LoadBalancer default service type, the page is loading as below. But,…
uday
  • 352
  • 10
  • 30
1
vote
1 answer

Consul proxy sidecar, peer certificate mismatch

I’m trying to connect two services web and DB (MySQL) use the tutorial in Secure Service Communication with Consul Service Mesh and Envoy | Consul - HashiCorp Learn as model. When I try to connect from web into DB got this lines on web…
1
vote
1 answer

Nomad nodes remove each other services from Consul

I got two nodes Nomad cluster along with a Consul instance so that the jobs can register services to connect to. However, the services keep getting synced and deregistered. Here is what I have from the Consul logs: 2021-01-26T14:49:59.174Z [INFO] …
Spack
  • 1,604
  • 15
  • 22
1
vote
1 answer

Proxying services through remote with traefik reverse proxy

For my homeserver project I'm hosting multiple services on my local server with services that I want to have outside access to (for example a minecraft game server) port forwarded with reverse ssh tunnels to my remote VPS in order to conceal my…
keraldi
  • 11
  • 2
0
votes
1 answer

integrate envoy with consul for service discovery

Edit - Is it even possible to achieve it or I should be looking into something else? How can I integrate envoy with consul for automatic service discovery and routing? I've the containers running in docker and each container is registering with the…
AppDeveloper
  • 123
  • 4
0
votes
1 answer

Consul as service discovery and configuration server in on premises local network

We are developing a product that will work as a set of services deployed on-premises (e.g. in the local network of an office, factory, etc.). Since there can be lots of deployment targets for each customer and we want to minimize the configuration…
0
votes
0 answers

how consul behind nsd

How tel nsd to use .consule as another service level for checking records. Here the stub-zone for unbound but how to tell nsd use consul? Unbound config stub-zone: name: "consul" stub-addr: 127.0.0.1@86400 NSD will be thorw an…