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
3
votes
1 answer

Trying to get Spring/Consul/Vault to work together

I'm trying to do something I think is simple. I want to use Consul for configuration, and Vault for secrets. What I'm looking for is a simple app like this that allows me to get config and services from Consul, and secrets from Vault. In my…
DJ Spiess
  • 983
  • 2
  • 9
  • 26
3
votes
0 answers

How to configure DC automatically when use Spring Cloud Consul?

When use Spring Cloud and Consul to do the service discovery, if a service wants to access another service which is located in different DCs, the DC name must be specified in the configuration like…
Yang Lifan
  • 445
  • 6
  • 15
3
votes
0 answers

Using Spring Boot application to pull key value pairs from Spring Cloud Consul

After referencing this link, I am able to pull down value from config/application/key1 The code are as follows: @SpringBootApplication @EnableAutoConfiguration @EnableDiscoveryClient @RestController @EnableConfigurationProperties public class…
3
votes
0 answers

Fails to get Consul Key using spring-cloud-consul

I am trying to get a value from Consul KV store using spring-cloud-consul Key exist: curl…
alexg
  • 31
  • 4
3
votes
1 answer

Consul key value pair use for configuration in Spring-boot

I tried to change my registration server from "Eureka" to "Consul" and also Consul as my config server. Service discovery with Consul is a success.But I can't understand how to get key/value pair option to bootstrap my application. Is there any…
2
votes
1 answer

Service Discovery not working when using WebClient with Consul

We're migrating the Spring Boot from 2 to 3 and also getting rid off Netflix Ribbon. We're experiencing an issue while trying to discover a service using Consul. If we rollback to Spring Boot 2 + Netflix Ribbon, it works with no problem, so we…
2
votes
0 answers

What is the order of properties precedence in spring boot app

We have a springboot app which is using Consul for properties management. We have a boolean property in Consul which is set to false. While starting the app, we have the same property set at command line argument as true. What I observed is this…
2
votes
1 answer

Spring Cloud Consul Configuration Versioning

I am trying to figure out how are you supposed to be versioning the Consul configurations. My goal is to be able to prepare the production configurations for the next version without touching the existing ones. And also to be able to revert to the…
2
votes
1 answer

Spring Cloud Consul - Service Not Registering a Contactable Address on K8s

I've seen a few questions around this, but not been able to get a clear answer. I have a Consul cluster running on an Openshift K8s cluster. I also have a set of services that need to register with and use Consul, also running in the same K8s…
olibs
  • 99
  • 9
2
votes
0 answers

Multi-Cluster Kubernetes Service Discovery using Consul and Spring Cloud Consul

Alright, so I have two bare metal Kubernetes clusters, with no cloud providers. I have microservices written in spring boot. Now I want to build a production grade service discovery mechanism for inter-service communication. My basic intention is…
2
votes
0 answers

UnknownHostException in Spring Boot with Consul

I am using spring-boot-starter-parent version 2.2.2.RELEASE with spring-cloud.version Hoxton.SR1 to create 2 services : ordercreate(Supplier) and orderconsume(Consumer). In Consul, the 2 services are up as below I get the…
2
votes
2 answers

Unable to connect to spring cloud consul (can't set host/port)

I am trying to connect to a consul server from a Spring boot application, which fails because spring cloud consul doesn't seem to read my host configuration. Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8500…
Adrian Elder
  • 1,993
  • 3
  • 19
  • 38
2
votes
2 answers

Why spring cloud consul doesn't work with standalone tomcat?

Spring cloud consul works as expected when run code inside a spring boot with embedded tomcat. It doesn't work when we deploy code on the standalone tomcat.It appears there is a ConsulAutoServiceRegistrationListener which starts consul service…
s7vr
  • 73,656
  • 11
  • 106
  • 127
2
votes
0 answers

Do Spring LDAP and Spring Cloud Consul work together?

I had a project with Spring LDAP in place. I am trying to put in Spring Consul into this project and have been facing issues with respect to it. Here is the pom.xml : org.springframework.boot
2
votes
0 answers

Spring cloud consul config

I am trying to write a custom configuration for spring cloud consul config. I was able to make the application work with autoconfiguration. https://cloud.spring.io/spring-cloud-consul/multi/multi_spring-cloud-consul-config.html I just need to…
SHM
  • 182
  • 1
  • 2
  • 15
1
2
3
10 11