112 questions
3
votes
1
answer
82
views
Compatible versions of bucket4j - NoSuchMethodError: 'void io.github.bucket4j.distributed.proxy.ClientSideConfig<init>(...)'
I have a Gradle project with the following configuration:
plugins {
id 'org.springframework.boot' version '3.5.0'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
}
ext {
...
0
votes
0
answers
53
views
Why do I get two KubernetesClient beans only when running a native image?
I have a Spring Boot + Spring Cloud application that I'd like to build as a native image for faster startup time and smaller image size. I understand that Spring Cloud is not yet providing official ...
0
votes
1
answer
63
views
Avoid leadership grant on shutdown (Spring Cloud Kubernetes)
I have an application using the Spring Cloud Kubernetes leader election mechanism. When shutting down the pod, I would like to revoke leadership before the Spring graceful shutdown starts to ensure ...
2
votes
1
answer
1k
views
Spring Cloud Kubernetes Leader Election: different leaders for different functionalities
My goal was to achieve that only 1 pod of my application executes a scheduled job.
I have implemented a following simple example using kubernetes election leader functionality and it works:
1.Maven ...
0
votes
0
answers
170
views
Issues with Cross-Namespace Service Discovery in Kubernetes with Spring cloud kubernetes
I'm running multiple Spring Boot applications in two different Kubernetes namespaces. Here’s my configuration for all services:
SPRING_CLOUD_KUBERNETES_DISCOVERY_NAMESPACES_0: welcoming
...
1
vote
0
answers
66
views
Spring Cloud Kubernetes ConfigMap in bootstrap phase
I have an Sprint Boot 3 application, and I use property placeholders in bootstrap.yml, like:
spring:
cloud:
service-registry:
auto-registration:
enabled: ${my-spring-cloud.enabled}
...
0
votes
0
answers
385
views
Springboot-3.1.6.. Getting KubernetesClientException: Operation: [list] for kind: [Service] with name: [null] in namespace: [namespace] failed
I am trying to upgrade my current springboot application from version 2.2.2.RELEASE to 3.1.6. Since my application is deployed in kubernetes cluster, i had to upgrade associated spring boot kubernetes ...
1
vote
1
answer
242
views
DiscoveryServerUrlInvalidException: spring.cloud.kubernetes.discovery-server-url must be specified and a valid URL
I want to implement Spring Cloud Kubernetes. I created this test project:
https://github.com/rcbandit111/mockup/tree/master
configuration:
spring:
application:
name: mockup
cloud:
...
1
vote
2
answers
758
views
Spring cloud Kubernetes doesn't load ConfigMap
Help me please with a problem. My spring app doesn't load properties from Kubernetes config map.
My spring code:
MyConfig.class
@Configuration
@ConfigurationProperties(prefix = "my")
@Getter
...
2
votes
0
answers
384
views
Does Spring Cloud Kubernetes Config support local spring config while allowing overrides from ConfigMaps
Edited:
I'm comparing Spring Cloud Config with Spring Cloud Kubernetes PropertySource of ConfigMaps. I've managed to do a quick POC with Spring Cloud Config, but I have not done a POC for the Spring ...
3
votes
1
answer
1k
views
Leader election with Spring Boot Cloud: Duplicate bean kubernetesHealthIndicator
I'm trying to add leader election to a Spring Boot 3.2 service running on a local Kubernetes cluster. The manual advises to add the spring-cloud-kubernetes-fabric8-leader dependency, so now I have
...
1
vote
2
answers
954
views
Spring Cloud Kubernetes app failed to start:
I have an simple app with spring boot EKS with kubernetes
JDK17
spring-boot-starter-parent 3.1.3
spring-cloud-dependencies
spring-cloud-starter-kubernetes-fabric8-config
spring-cloud-starter-bootstrap
...
0
votes
2
answers
2k
views
Spring boot 3 does not load configMap
I have a minimalist app with spring boot 3.1.1 and spring cloud 2022.0.4, on EKS with kubernetes 1.27, but unfortunately the config is never loaded from the ConfigMap ...
The app is made of a single ...
0
votes
0
answers
470
views
Spring kubernetes configuration watcher not refreshing application after ConfigMap change
So I've been struggling with this few days. I'm trying to hot reload a spring boot app after configmap changes.
The change is detected but it doesn't seem to refresh.
I did what exactly what was done ...
0
votes
1
answer
2k
views
Unable to read configmap in spring boot app using cloud kubernetes
I'm trying to setup spring boot application with cloud kubernetes to read configmap with the following configuration.
Pod service account:
serviceAccount: default
serviceAccountName: default
Role:
...