Questions tagged [consul]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

Consul script handler stdout not showing up in logs as documented

I'm writting a script to be used as a handler in a watcher config in consul. The documentation for script type hanlders states: An executable handler reads the JSON invocation info from stdin. [...] ...
0
votes
0answers
26 views

is it possible to serve dns server which is behind haproxy on same node as haproxy and consul?

I have consul, on ip 192.168.0.15, and I have installed haproxy via docker on same node with http port 8081(not that it matters). but I also have 1 of CoreDNS server running on same ip but port number ...
1
vote
0answers
141 views

why consul systemd service is failing?

This is my consul.service file. [Unit] Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ Requires=network-online.target After=network-online....
1
vote
1answer
151 views

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 ...
0
votes
0answers
21 views

Consul handling dynamic IP address

If suppose I have a node-exporter for my project running on aws instance its IP:port is:- "10.0.0.1:9100". I used the agent service register to add it to the consul. Then used consul_sd to ...
0
votes
1answer
10 views

Why does consul services register do nothing?

I have created a simple JSON service definition file and am attempting to register it as a service in the local consul agent on the server: / $ consul services register /tmp/foo.service However, ...
-1
votes
2answers
131 views

Is there a still a reason to use Consul with modern (“Integrated”) Docker Swarm?

I've done a little Docker Swarm in the past, and it was pretty uncomplicated - create a Swarm Manager on one node, create Swarm Workers on two more nodes, stick with a single Manager. I would like to ...
0
votes
0answers
75 views

Traefik + Consul not generaitng SSL certificates in replicated mode, using TRAEFIK DEFAULT CERT

I have a setup of 1 master and 2 worker nodes running docker swarm. I deployed Traefik + Consul using the setup below: version: '3.3' services: consul-leader: image: consul:latest command: ...
1
vote
1answer
411 views

Using Consul dynamic inventory as Ansible's inventory and would like to set a specific ssh user, how is it done?

My setup: Every physical server in the network has consul-client installed and I manage these servers using consul_dynamic_inventory script which I've edited to allow me the use of specific grouping ...
0
votes
1answer
76 views

Consul template, consul and HaProxy setup with springboot applications in docker containers

Can someone tell me how to configure HaProxy config and consul-template to fill the config file automatically? How do we configure consul-template? How do the HaProxy config file and consul-template ...
0
votes
1answer
218 views

Getting Permission denied when accessing consul with python

While trying to debug patroni connection to consul, I tried to write simple python connector to consul myself. That's what I'm doing(python3, Centos7) import consul c = consul.Consul(host='consul-...
1
vote
1answer
84 views

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 ...
0
votes
1answer
246 views

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 ...
0
votes
1answer
83 views

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 ...
0
votes
0answers
74 views

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: ...
1
vote
0answers
31 views

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 <<>&...
1
vote
0answers
1k views

Configure Consul cluster with ACL enabled

Hello everyone and thanks for reading. I'm quite new to Consul. I've reading the documentation and practicing for a while, thus I've been able to properly configure consul in a few nodes. Now I want ...
1
vote
0answers
190 views

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 ...
1
vote
1answer
494 views

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 ...
5
votes
1answer
541 views

Large AXFR through dnsmasq causes dig to hang with partial results

I'm attempting to set up dnsmasq as a local cache for consul. While this seems to work fine for normal digs, dnsmasq seems to only allow partial zone transfers. My resolv.conf: search x.domain.com y....
0
votes
1answer
442 views

Consul, vault and postgres containers don't communicate

I'm trying to set up Consul with Vault for secrets management for Postgres with Docker. Here is my configuration Dokcerfile: FROM python:3.6-slim ENV VAULT_VERSION 0.11.1 ENV CONSUL_VERSION 1.2.3 ...
2
votes
2answers
151 views

DNS layer with service discover as resolver not SRV

I need to know is there any solution for solving my problem. I have a BIND DNS server and consul as service discoverer. This is what i want as simple diagram: How can I configure this sample setup ...
2
votes
0answers
144 views

Can consul-template fetch Vault servers from consul?

I would like to integrate HashiCorp vault into our current setup of consul + consul-template and was a bit surprised to find no option for consul-template to fetch the vault servers from consul's ...
1
vote
0answers
697 views

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 ...
1
vote
0answers
458 views

Promoting Nomad task meta tags via consul to Prometheus

We are using Nomad to schedule tasks which are then registered in Consul from where they are picked up in Prometheus scraping. service.hcl: job "myjob" { group "mygroup" { count = "1" task ...
1
vote
2answers
7k views

How do I completely remove a node from a Consul cluster?

This Consul Server node, in another DC, keeps joining some time after I remove it. The goal: A cluster of 5 Consul Servers in DC alpha0, whose KV Store a alpha0 Vault cluster uses as a Storage ...
3
votes
3answers
3k views

TERRAFORM how do i have 1 ecs cluster with 2 or more ecs service/task definitions?

Using Terraform, I have tried the hardest to find out how to create 1 ECS cluster and have multiple services running under it. SO basically i have 2 different containers i want to run with this 1 ECS ...
0
votes
1answer
1k views

consul keeps looking for the dead server node

I have consul cluster in production which is integrated with terraform, ansible,nomad,docker,vault. My consul keeps looking for the dead node which was part of initial setup even after removing entry ...
2
votes
2answers
639 views

access consul from remote using DNS

i have installed consul on EC2 aws. i have 3 servers for consul = 11.XX.XX.1,11.XX.XX.2,11.XX.XX.3. i have 1 client for consul = 11.XX.XX.4 below is configuration file /etc/consul.d/server/config....
5
votes
2answers
6k views

Howto unseal vault server, running in a docker container

I have a docker compose setup that successfully starts consul (config here). Vault seems to start ok, except for some errors around setting the TTL (logs here). Further on, consul seems to be ...
1
vote
1answer
249 views

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 ...
2
votes
1answer
1k views

nomad shows job as dead

I am new to nomad. We are using nomad in production along with docker, consul, vault, ansible. When I run a nomad job from my local machine, Job registers successfully but show status as dead. ...
3
votes
2answers
5k views

Format for hdr_sub pattern matching

I am trying to match the value of a header which has a space in it and cannot figure out what regex expressions haproxy likes. The header I'm after looks like this: X-Request-ID:'Foo: Bar' I would ...
0
votes
1answer
861 views

What are the possible causes of a curl protocol error?

I'm getting the following error with curl: # curl -vvvv https://192.168.99.100:8501/ui * Trying 192.168.99.100... * Connected to 192.168.99.100 (192.168.99.100) port 8501 (#0) * WARNING: using IP ...
5
votes
1answer
2k views

Why would using MongoDB in lieu of etcd as a key value store be a good or bad idea? [closed]

I'd like to get general thoughts from the community as to why MongoDB for key/value would OR would not be a suitable replacement for etcd or other purpose-built key/value store system (consol, ...
1
vote
1answer
264 views

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 ...
1
vote
1answer
275 views

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 ...
2
votes
1answer
2k views

Rolling update behind HAProxy

I am using an infrastructure platform consisting of docker containers running on a CentOS host. Scaling multiple containers through docker compose. Consul for service discovery. Registrator for ...