1,151 questions
1
vote
0
answers
92
views
Consul client fails UDP gossip (8301) when server runs in Docker, but works fine in bare metal
I’m trying to run a Consul server (SERVER_IP) in Docker, and have a Consul client (CLIENT_IP) on another server join the cluster.
Everything works when the server is run in bare metal, but when ...
2
votes
1
answer
82
views
Graceful shutdown fails in Node.js when HTTP request is used for Consul deregistration
I'm trying to implement a graceful shutdown in a Node.js app. It should deregister from Consul and close several resources (Redis, MySQL, etc.) when it receives a termination signal (SIGINT / SIGTERM)....
0
votes
0
answers
44
views
How to find key/value pairs in Consul snapshot?
Hashicorp Consul do provide snapshot facility that can be used to backup and restore state of service. According to documentation snapshot command is available from CLI and API and takes snapshot in ...
1
vote
0
answers
66
views
Consul returns container ID instead of hostname when using Service Discovery in Docker (Ocelot + Consul)
I'm using Consul for service discovery in a Docker Compose environment. However, when my API Gateway (using Ocelot) tries to call a service, Consul returns the container ID instead of the expected ...
0
votes
0
answers
22
views
Same service name in consul for multiple applications
I'm trying to make use of the URI scheme mongodb+srv for host discovery when our apps connect to MongoDB. With a service configuration file like this on each node I can resolve this via _mongos._tcp....
0
votes
0
answers
120
views
Issue with Consul health check not working when using custom CNI with Nomad job
I have a Nomad on premise cluster with 3 servers and 3 clients. I am using Consul as the service discovery mechanism. Everything works fine when I use the default bridge network mode in my job ...
0
votes
1
answer
40
views
Consul on EKS via helm with gossipEncryption autogenerate true
I’m trying to get consul running on an EKS cluster via helm where there are taints on the nodes. My configuration has
gossipEncryption:
autoGenerate: true
which spins up a pod on a tainted node. ...
0
votes
0
answers
53
views
Is there a way to prevent Spring Cloud Consul from looking for config changes in any profile locations?
My project uses Spring Cloud Consul to check for configuration changes. My application.yml contains:
spring:
application:
name: myApp
config:
watch:
delay: 30000
import:
- &...
1
vote
0
answers
64
views
Spring cloud OpenFeign Integrate Consul1.20.1 cannot be called normally: ensure the path starts with '/v1/'
I wrote a simple demo case, mainly used to test the integration of spring cloud and consul. However, when using openfeign, the following error occurred when calling consul-server through consul-client....
0
votes
0
answers
76
views
Deploy consul on kubernetes hashicup guide unreachable api gateway
I am following this tutorial Enable external traffic ingress into Consul service mesh. I am following the self-managed local deployment guide. I am using helm, kind and kubectl, like the guide ...
0
votes
2
answers
233
views
Consul list services, how to filter by service name?
I'm using the http call curl -s --get http://MyConsulURL/v1/catalog/services to list services like so:
"MYSVC": [],
"MYSVC1": ["mytag1","mytag2"],
"MYSVC2&...
0
votes
0
answers
80
views
Hashicorp Consul OIDC authentication and auditlog
I'm using HashiCorp Consul with Keycloak for OpenID Connect (OIDC) authentication. I have encountered an issue when enabling audit logs. When I log in to Consul, the logs display the temporary token ...
0
votes
0
answers
61
views
oauth2 with google not working in docker container
i have a microservice for logging in using oauth2. it gets a login request from the frontend that is routed through a gateway.
the service works just fine when i run it normally using mvn spring-boot:...
1
vote
0
answers
187
views
Connection refused in ocelot api gateway requests via consul for service discovery in docker containerize applications
I am developing a project with microservices architecture, Ocelot is being used as API gateway, Consul is for service discovery and application will be containerize with docker.
All the services are ...
0
votes
1
answer
65
views
Connecting K8s and Nomad using a single Consul Server (DC1). Is this even possible or what is the next best way to do so?
Currently I have setup K8s cluster, Nomad cluster and a consul server outside of both of them. I also have an assumption that these clusters are owned by different teams / stakeholders hence, they ...