Questions tagged [spring-cloud-kubernetes]
99 questions
2
votes
1 answer
Spring Cloud Kubernetes Loadbalancer issue with Spring Boot 2.6.6
I am using spring boot 2.6.6 and spring cloud 2021.0.2 version with spring cloud kubernetes loadbalancer and spring cloud kubernetes all.
But I am getting error Application failed to start below are the dependencies
…

Vish
- 53
- 7
2
votes
1 answer
K8s ConfigMap Properties mounted and loaded from file system does not work when refresh is called
I have a Spring Boot app deployed to K8s. I'm using ConfigMap instance to mount my application.properties into the Pod by running the Spring Cloud Kubernetes application and having Spring Cloud Kubernetes read them from the file…

Vahid
- 1,625
- 1
- 18
- 33
2
votes
1 answer
disabling discovery for k8s api client
Right now i used the way from the 1st answer from:
Cannot read configmap with name: [xx] in namespace ['default'] Ignoring
But in application logs:
2022-04-19 14:14:57.660 [controller-reflector-io.kubernetes.client.openapi.models.V1ConfigMap-1] []…

Pavel
- 31
- 4
2
votes
0 answers
Spring Cloud Kubernetes Configuration Watcher Example
Can someone please point me to a simple and complete example using the Spring Cloud Kubernetes Configuration Watcher with a recent version of Spring Boot? I have found a few examples online that use the Config Watcher but they actually reload the…

Steve
- 53
- 5
2
votes
1 answer
How do I use Spring Cloud Kubernetes to programmatically write a ConfigMap value?
I have a service that uses Spring Cloud Kubernetes Config to reload its configuration when a value in a ConfigMap changes. That all works great.
Is it possible to use Spring Cloud Kubernetes (or one of its dependencies) to write a ConfigMap value? …

Mark
- 4,970
- 5
- 42
- 66
2
votes
1 answer
Kubernetes pod level configuration externalization in spring boot app
I need some help from the community, I'm still new to K8 and Spring Boot. Thanks all in advance.
what I need is to have 4 K8 pods running in K8 environment and each pod have slightly different configuration from each other, for example, I have a…

yarkanlik
- 23
- 5
2
votes
1 answer
Spring Cloud Kubernetes: Support for fail policy on the event that ConfigMap can’t be read
Due to business requirements, we require the use of a Kubernetes client for an app running on Spring Boot 2.4. Whilst testing the ConfigMap loader (specified via a bootstrap file), we noticed that, in the event that the ConfigMap cannot be loaded,…

Gabriel Ortega
- 21
- 1
2
votes
2 answers
Spring Actuator - Service discovery - /health "description":"Discovery Client not initialized","status":"UNKNOWN"
Question related to service discovery with Spring Boot Actuator, combined with Spring Cloud Kubernetes please.
Currently, I have a web app that has both the actuator and spring boot kubernetes dependencies.
I am also using the discovery client…

PatPanda
- 3,644
- 9
- 58
- 154
2
votes
1 answer
Spring Cloud Kubernetes not reloading secret change
I am exploring the capabilities of Spring Cloud Kubernetes by using its feature to reload secrets on the fly. However, I still did not get this working.
I have a simple Spring Boot application that just prints out the contents of the secret that is…

Azlop
- 41
- 4
2
votes
2 answers
is spring cloud kubernetes support spring cloud loadbalancer?
Does Spring Cloud Kubernetes support Spring Cloud Loadbalancer?
I am to deploy Spring boot application on Kubernetes and also perform client side load balancing with ribbon client by following link…

anjani
- 21
- 2
2
votes
3 answers
Spring Cloud Kubernetes get url with custom spring.servlet.context-path
We are currently using Spring Boot Admin for monitoring our microservices inside the OpenShift cluster.
Spring Boot Admin aplication get information about services from the Openshift's Service Discovery using spring-cloud-starter-kubernetes…

Stanislav Giley
- 33
- 7
2
votes
2 answers
Spring Cloud Gateway on Kubernetes discovery locator use pod port instead o service port
i'm implementing an API Gateway on openshift with spring cloud gateway and spring cloud kubernetes discovery.
I started from the project https://github.com/salaboy/s1p_gateway.
My gateway configuration is:
cloud:
gateway:
discovery:
…

angcap
- 149
- 2
- 9
2
votes
0 answers
Spring Cloud Kubernetes: Cannot pass secrets into application_properties.yaml
I'm trying to apply the spring cloud kubernetes to be able to use my secrets inside of my application_properties.yml file.
I've set up my deployment.yaml like so
spec:
template:
spec:
containers:
- env:
volumeMounts:
…

Addison Joseph
- 126
- 2
- 15
2
votes
0 answers
spring-cloud-kubernetes stops listening to ConfigMap events
My simple spring-boot 2.1.5.RELEASE running on Azure Kubernetes Service, responsible for listening to ConfigMap changes - receives 'Force closing'.
spring-boot-starter-parent = 2.1.5.RELEASE
spring-cloud-dependencies = Greenwich.SR1
Relevant…

asceta
- 272
- 1
- 4
- 10
2
votes
1 answer
deploying spring-cloud-kubernetes kubernetes-hello-world-example fails
I am trying to run the 1.0.1.RELEASE version of the example https://github.com/spring-cloud/spring-cloud-kubernetes/tree/master/spring-cloud-kubernetes-examples/kubernetes-hello-world-example but it fails with this error in both minikube and in…

stephen newman
- 533
- 4
- 17