0

Does anyone have a working example of Stork DNS Service Discovery working in Quarkus.... I see lots of examples using consul but not using DNS and I cannot get the properties or Inject beans when using DNS.

@ApplicationScoped
@RegisterRestClient(baseUri = "stork://auth-service/")
@RegisterProvider(OidcClientRequestFilter.class)
public interface KeycloakService {

I placed the following in my properties file but I get a compiler warning saying it is being ignored.

quarkus.stork.auth-service.service-discovery.type=dns

and my POM

<dependency>
  <groupId>io.smallrye.stork</groupId>
  <artifactId>stork-service-discovery-dns</artifactId>
  <version>1.2.0</version>
</dependency>

The error I am getting is

Caused by: java.lang.IllegalArgumentException: The value of URL was invalid stork://auth-service
R Soph
  • 11
  • 2

0 Answers0