Questions tagged [spring-cloud-consul]

Spring Cloud Consul provides Consul integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

Spring Cloud Consul features:

  • Service Discovery: instances can be registered with the Consul agent and clients can discover the instances using Spring-managed beans
  • Supports Ribbon, the client side load-balancer via Spring Cloud Netflix
  • Supports Zuul, a dynamic router and filter via Spring Cloud Netflix
  • Distributed Configuration: using the Consul Key/Value store
  • Control Bus: Distributed control events using Consul Events

https://cloud.spring.io/spring-cloud-consul/

154 questions
1
vote
1 answer

Spring Boot Cloud + Hashi Consul + Connect Proxy : How to configure bootstrap for config?

I am putting together a proof-of-concept using the latest spring boot, HashiCorp Consul & Connect. Basically, I want to show how webflux web services can use Consul for configuration and use Consul's mesh for secured communications. So, the latter…
1
vote
1 answer

Change Spring profile from Consul configuration

Migrating an SpringApplication I find that there are profiles used to run in different modes. Anytime there may be different instances with different profiles running in production at the same time. I want to be able to change those Spring profiles…
borjab
  • 11,149
  • 6
  • 71
  • 98
1
vote
1 answer

GRPC Java load-balancing - start method is not being called from NameResolver

We are trying to implement gRPC load balancing in Java with Consul Service Discovery. Version info: grpc-java v1.30.0 The problem is that when the app runs, the start method from our custom NameResolver class not being called ! Here is our…
1
vote
0 answers

How to use Consul connect with spring-boot micro-services

can Someone please guide me with the steps to secure micro-service communication with TLS using Consul-connect and side-car proxies. I am using spring-cloud-consul-client to register my micro-service to consul agent. Kind Regards,
ananda
  • 121
  • 3
  • 9
1
vote
0 answers

Service routing 404 through consul and Spring Cloud Gateway

I am creating a microservice app with Spring cloud gateway and Consul. When I try getting a response from the microservice "example" with its port (3000) I get the response. But When I try to access with the gateway (demo) port (9090) I got the…
1
vote
0 answers

camel service discovery got error when local consul client forcibly shutdown

I'm using camel as micro service gateway, and consul cluster as service discovery center. Every camel gateway connect localhost consul client(recommend on production mode) for service discovery. If I forcibly shutdown the consul client on gateway…
Ryan
  • 11
  • 1
1
vote
1 answer

Connection Refused for Consul

I am starting a Spring Boot Application with Consul. I am getting the following error 2019-08-30 12:34:22.650 ERROR 23428 --- [ main] o.s.boot.SpringApplication : Application run…
Ayman Arif
  • 1,456
  • 3
  • 16
  • 40
1
vote
1 answer

org.apache.http.conn.HttpHostConnectException: Connect to localhost:8500 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

I try to execute Spring Boot jar file with Consul on Windows 10. First I installed Consul on Windows 10. Then I execute Spring Boot jar file. For your information, below is the…
Joseph Hwang
  • 1,337
  • 3
  • 38
  • 67
1
vote
1 answer

Why doesn't app expose /health-check-path endpoint?

I just created my first Consul aware Spring Boot application but it doesn't work correctly. The app is pretty simple: @SpringBootConfiguration @EnableAutoConfiguration public class App { public static void main(String[] args) { …
Pasha
  • 1,768
  • 6
  • 22
  • 43
1
vote
1 answer

Registering spring boot application with consul after service is bootup

I have a legacy code where a spring boot application is registered with consul after the service boot up. The application autowires ConsulLifecycle spring bean through which it register/un-register the service with consul using its inbuild method…
Programmer
  • 165
  • 1
  • 1
  • 7
1
vote
0 answers

Why is the change of property value "management.endpoint.health.show-details" ignored at runtime?

I'm using Spring Cloud Consul to manage configuration of my application (Spring Boot: v2.1.4.RELEASE) In file 'application.yml' uploaded to Consul I have following configuration for Actuator: management: endpoints: web: exposure: …
1
vote
1 answer

Is there a flag to disable discovery in spring cloud consul?

Is it possible to disable the service discovery in cloud consul but still keep the registration. Similar to how one can disable the auto registration but keeps discovery like @EnableDiscoveryClient(autoRegisters=false)
s7vr
  • 73,656
  • 11
  • 106
  • 127
1
vote
1 answer

Read values from consul while bootstrap spring boot

I have question is there any way to retrieve certain values and inject them to bootstrap.yml while application is coming up. I have configuration file like this: spring: application: name: myApp cloud: consul: enabled: true …
liotur
  • 809
  • 2
  • 17
  • 36
1
vote
0 answers

Consul within Docker Swarm

Has anyone been able to use Consul within Docker Swarm successfully? The reason I ask is that I've been struggling for days to get it running (my additional post here). The only way I can get Consul to start is to run it using "network_mode: host"…
Steve Davis
  • 167
  • 14
1
vote
0 answers

App does not register service with Consul

My App does not register service with Consul. I tracked the source code, the problem seems like the bind method of AbstractAutoServiceRegistration does not invoke. If I understand correctly, the binding logic is in…
Juey
  • 123
  • 1
  • 6