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
46 questions
5
votes
1 answer

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.domain.com z.domain.com domain.com nameserver…
Connor Bell
  • 136
  • 1
  • 7
5
votes
2 answers

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 hiccuping when trying to reach…
Frye
  • 253
  • 3
  • 11
5
votes
1 answer

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

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, zookeeper, etc).
DefionsCode
  • 230
  • 3
  • 9
3
votes
1 answer

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 to enable ACL's so I can manage the security of my…
3
votes
3 answers

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 cluster. How do i do this? I have seen many…
uberrebu
  • 493
  • 5
  • 15
  • 32
3
votes
2 answers

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 be Ok to match exactly this header or anything that…
Yana K.
  • 131
  • 1
  • 2
2
votes
2 answers

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 and let BIND just resolve the A record to the IP…
sweb
  • 451
  • 1
  • 9
  • 27
2
votes
0 answers

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 service discovery. This is the configuration doc…
Michuelnik
  • 3,260
  • 3
  • 18
  • 24
2
votes
0 answers

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 "mytask" { driver = "docker" config { …
DaDaDom
  • 532
  • 6
  • 16
2
votes
2 answers

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.json { "bootstrap": false, "server": true, …
2
votes
1 answer

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 service registry HAProxy as a load…
Madhur Ahuja
  • 273
  • 2
  • 5
  • 17
2
votes
0 answers

why consul systemd service is failing?

This is my consul.service file. [Unit] Description="HashiCorp Consul - A service mesh…
Chang Zhao
  • 132
  • 1
  • 9
2
votes
2 answers

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 learn more about Swarm, so I am following along…
halfer
  • 233
  • 1
  • 5
  • 21
2
votes
1 answer

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 options based on os major version for example and…
Itai Ganot
  • 10,424
  • 27
  • 88
  • 143
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
  • 9
1
2 3 4