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
Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Migrating from Consul Client to Consul Dataplane, what’s the recommended method to connect to the consul server HTTP API?

It has been some time my application is using Consul Client (daemonset) in the deployment setup with the ACL enabled. The application is using Consul SDK to register the microservices to the Consul ...
Chin Kang's user avatar
0 votes
0 answers
41 views

Accessed Consul cluster's KV store with TLS and ACL enabled through code, but Spring Boot configuration failure

Using com.orbitz.consul.consul-client:1.5.3, I can retrieve the value of the key from Consul's KV store in code. However, configuring it with Spring Boot 3.2.2 fails. I have set up a Consul cluster ...
happy's user avatar
  • 3
0 votes
0 answers
15 views

How do I get the list of tags for a Spring LoadBalancer client connected to Consul?

I can get the metadata like this: ServiceInstance serviceInstance = loadBalancerClient.choose(MY_SERVICE_NAME); serviceInstance.getMetadata().forEach((key, value) -> log.info("Consul metadata ...
hawkeye's user avatar
  • 35.2k
0 votes
0 answers
51 views

How to avoid 404 on Consul Config Watch for Spring Boot?

I'm configuring consul config on my Spring Boot app. But after release it to production I begin to get some 404's with some consul headers: My bootstrap.yml relevant keys: spring: application: ...
rmonico's user avatar
  • 31
0 votes
0 answers
17 views

Spring cloud consul use in spring application

How we can use spring cloud consul in spring application like the way we do in Spring Boot. I want spring application to fetch application properties directly from consul on its initialisation.
Anuj Kumar's user avatar
0 votes
1 answer
186 views

Circular dependencies between spring included components?

I have multiple applications that share the same configuration classes and once with spring boot v3 I received multiple circular dependencies errors. Most of them were legit mistakes from my side and ...
r.m.ghimis's user avatar
0 votes
1 answer
371 views

How to refresh CachingRouteLocator in spring cloud gateway and Consul

I have a Spring Cloud Gateway application, which uses Consul to define routes based on the services registered in Consul. I noticed that Spring configures RouteLocator to be CachingRouteLocator by ...
ATrubka's user avatar
  • 3,992
2 votes
1 answer
593 views

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 + ...
Lucas's user avatar
  • 129
1 vote
2 answers
99 views

Spring boot service registry

What is the difference between Consul and Eureka service registry? Is consul capable of load balancing? Is it better to migrate from eureka to consul? If yes what benefits I'll get? I'm trying to ...
simply Prudhvi's user avatar
1 vote
1 answer
472 views

Failed to bind properties under 'spring.cloud.consul.config' #820

APPLICATION FAILED TO START Description: I have a springboot application in which I am trying to configure vault and consul with consul i am facing below error: Failed to bind properties under 'spring....
Ritik Shukla's user avatar
0 votes
0 answers
57 views

Spring Cloud Gateway and Consul - All service checks failing

I have a Spring Cloud Gateway infrastructure with multiple microservices and a gateway. I have enabled Consul for service discovery functionality. In the Consul console, I can see all the registered ...
Mark116's user avatar
  • 673
0 votes
0 answers
21 views

spring-cloud.version to be used for spring boot version 2.6.6 [duplicate]

Spring-boot-starter-parent version:2.6.6 I want to know the required spring-cloud.version and also the spring-cloud-starter-consul-config dependency in detail. I have imported some sample Maven ...
Moses M's user avatar
0 votes
1 answer
684 views

Spring Boot App doesn't update new value from consul

I'm working with a SpringBoot app and try to update new value from consul server when the config is changed. Follow the document from Spring Cloud but can not update new value without restarting the ...
Phong DLL's user avatar
1 vote
0 answers
77 views

Spring Cloud Consul Cluster connecting with spring boot

I'm working with spring cloud consul as a config server and service discovery tool in test environment. according to the consul documentation, consul server need to be at least 3 to 5 recommended ...
Ali mjz's user avatar
  • 13
2 votes
0 answers
166 views

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 ...
user3379502's user avatar
0 votes
1 answer
114 views

Why is my Spring Consul Retry configuration not working

I am trying to use retry functionality in spring consul so that the application fail-fast after certain number of retries. I am using following bootstrap.yml spring: profiles: active: dev ...
Arbaz Sheikh's user avatar
1 vote
0 answers
201 views

How to retry indefinitely while connecting spring boot application to consul

We use Consul by HashiCorp for configuration management in our spring boot application. Sometimes consul agent is occasionally unavailable when our app starts. It is inconvenient that the app fails if ...
Arbaz Sheikh's user avatar
0 votes
1 answer
247 views

Spring-cloud-consul backward compatibility of property value parsing for "spring.cloud.consul.host" broken in spring-cloud-consul version 3.1.1

After upgrading my spring-boot application that uses Consul, I observe backward compatibility is broken. Spring boot upgraded from spring-boot:2.1.4.RELEASE to spring-boot:jar:2.7.3. Earlier spring-...
sanjay's user avatar
  • 1
1 vote
1 answer
57 views

HCP Consul with Spring Cloud Consul Discovery - Failing to connect to HCP Consul

I try to connect my spring application to the HCP Consul Discovery Service. Running consul locally in dev mode works well. consul agent -dev application.yml file looks like this: spring: cloud: ...
Alexander Tilkin's user avatar
1 vote
2 answers
404 views

How to cache Consul service lookup in a separate Spring Boot application?

Running our spring boot application takes 2-3 minutes to boot. Bulk of the time was spent on connecting to different servers via Spring Cloud Consul Discovery Client. I'm looking for a way to cache ...
Xegara's user avatar
  • 103
0 votes
1 answer
762 views

Spring Boot app doesn't read configuration from Consul if started before Consul

When I start Consul, then the app, and then create some configuration, the app would read it and apply at runtime. However if the app is started before Consul it wouldn't be able to read the ...
ka3ak's user avatar
  • 2,631
1 vote
2 answers
2k views

Unable to configure Spring Cloud Consul for specific profiles

I'm trying to configure spring cloud consul for a specific profile but when I try to run the application I get the following error: *************************** APPLICATION FAILED TO START *************...
arpaiva's user avatar
  • 11
0 votes
0 answers
957 views

Dependency 'org.springframework.cloud:spring-cloud-starter-consul-discovery:' not found

I am following the spring cloud consul documentation on version 3.1.0 and I was trying to replicate the step by step documentation, in which it shows this set of dependencies to be applied, one of ...
Wildrimak's user avatar
0 votes
0 answers
235 views

How do I set the spring active profile using consul?

I have a consul env: spring: profiles: active: dev blah blah other stuff I've verified that the consul env properties are being read by the spring app (it locates the right property source and ...
Bryan Tan's user avatar
  • 253
0 votes
0 answers
39 views

consul - Duplicate call generated during timeout

I have two micro services MS1 and MS2 running on 2 nodes say n1 and n2. When MS1 calls MS2, consul discovers MS2 of node1. However, MS2 of node1 takes longer than the read timeout defined. As soon as ...
Guru's user avatar
  • 16.7k
0 votes
2 answers
2k views

Spring boot consul health check is failing

I have a consul server running on my local machine in dev mode with ACL enabled. Here is my ACL policy for service named web: service "web" { policy = "write" } And I have a ...
Mudit Shukla's user avatar
0 votes
1 answer
405 views

Configure Consul Watches with HTTP Endpoint Handler through CLI

I am starting out with Consul, and I was wondering if there is a way to set the HTTP handler configuration(s) (i.e. path, method, etc.) through the CLI command itself (consul watch), without using a ...
Dasun Pubudumal's user avatar
0 votes
1 answer
106 views

Where to get the microservice registration time in consul

My microservice called user-service and registration in consul.But in consul panel no time show.I would like to get what time the service is registered.Is there any way to achieve? Now the panel show ...
facebook-100002276297329's user avatar
0 votes
0 answers
728 views

service get automatically deregister from consul after a period of time

we have implemented Microservice Architecture. When we deploy a service it perfectly register itself over consul. But after some time it gets automatically deregister. No logs in service as well.
SAKSHI YADAV's user avatar
0 votes
1 answer
833 views

how to get Array of values from consul in Springboot

I have multiple host values according to different markets how to fetch all those in spring-boot to create a bean. I have tried with @value("#{${app.host}}") private String[] host; consul ...
Chaithra Shenoy's user avatar
0 votes
1 answer
694 views

Spring Cloud Consul client does not ignore critical services

I have implemented a Spring Cloud based application that has the following principal architecture. The GatewayService delegates to multiple instances of HelloService. I use Consul for service ...
Johann Heinzelreiter's user avatar
2 votes
1 answer
255 views

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 ...
Miro's user avatar
  • 63
1 vote
0 answers
2k views

Not able to read consul key value properties into spring boot application

I am very new to the consul. Started with POC, able to establish communication between two services using the consul, but unable to read key/value pairs from consul into spring boot application. Have ...
Prashanth's user avatar
  • 105
0 votes
1 answer
719 views

Spring boot application registers same instance, multipe times in consul cluster

I am trying to register a spring boot app to a consul cluster. I have 3 node consul cluster 1 master 2 agents. I have a load-balancer in front of 2 consul agents, so that it is HA. In my application....
Parvatayya Malimath's user avatar
1 vote
1 answer
989 views

No DiscoveryClient found during Spring bootstrap of cloud-vault-config

I'm using spring-cloud-starter-vault-config to pull secrets from vault. I'm able to get this working just fine with Config First Bootstrap. When I try and enable service discovery so I can get the ...
Eric's user avatar
  • 155
1 vote
1 answer
1k views

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 ...
A Bit of Help's user avatar
1 vote
1 answer
99 views

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. ...
borjab's user avatar
  • 11.4k
0 votes
0 answers
125 views

Service Discovery using Consul with Path Variable

I am using Consul for Service Discovery. Have a service called core-service where there is an API, which accepts a Path Variable, as - @GetMapping("/records/status/{status}") I need to ...
ekansh's user avatar
  • 746
0 votes
1 answer
505 views

Does the client stores the queries from consul registry in some cache?

As the time taken by the clients to query consul for discovery will be more, does the client itself caches the registry or it queries consul for every request it has to make?
rakshit gupta's user avatar
1 vote
1 answer
1k views

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 ...
Huỳnh Thanh Bình's user avatar
10 votes
1 answer
4k views

Why is the SSL connection between a Spring Boot app and Consul failing after a few minutes?

I'm in the process of upgrading an environment with new versions of Ubuntu, Consul and Spring Boot. At first glance, everything seems to be working just fine. The app connects to Consul, requests its ...
jhkuperus's user avatar
  • 1,449
3 votes
1 answer
1k views

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 ...
olibs's user avatar
  • 119
2 votes
0 answers
537 views

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 ...
Abhinav's user avatar
  • 463
0 votes
1 answer
225 views

Inter-Cluster Service Discovery in Bare Metal Kubernetes Machines

I am exploring options for service discovery in my new project. So here is how it is : I have multiple bare metal Kubernetes (Linux) machines, with no cloud providers. I have multiple Kubernetes ...
Abhinav's user avatar
  • 463
1 vote
0 answers
106 views

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 ...
ananda's user avatar
  • 171
3 votes
2 answers
565 views

Consul share network from docker

There is consul server in docker. vote-consul-server: image: consul:1.7.2 environment: CONSUL_BIND_INTERFACE: eth0 ports: - "${CONSUL_PORT}:8500" It generates hosts for ...
yazabara's user avatar
  • 1,323
1 vote
1 answer
1k views

How to register spring-boot app to consul over https?

Can someone please provide the configuration (all the necessary steps) which are needed to make a spring-boot service register to consul over https. I have configured Consul to https port 8501. ...
ananda's user avatar
  • 171
1 vote
0 answers
632 views

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 ...
Karim zgoN's user avatar
2 votes
0 answers
2k views

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 ...
astar's user avatar
  • 195
0 votes
1 answer
573 views

Spring Cloud Consul and Consul Clients dockerized

I have 2 applications, both written using spring boot. Both are running in different docker containers. I also have consul running in a different docker container. I have exposed port 8500 for consul ...
HyukHyukBoi's user avatar