Questions tagged [spring-cloud-kubernetes]

99 questions
13
votes
1 answer

What's the difference between Spring Cloud loadbalancer and Ribbon?

Our team is planning to move from Spring Cloud Netflix Ribbon to Spring Cloud LoadBalancer and using spring-cloud-kubernetes as discovery client. Using Spring Cloud Gateway instead of Zuul and Resilience4j instead of Hystrix. What are the required…
Vaibhav Atray
  • 208
  • 4
  • 14
11
votes
3 answers

How to set up Spring Cloud Gateway application so it can use the Service Discovery of Spring Cloud Kubernetes?

I created two Spring Boot applications which both will be deployed in a Kubernetes cluster. One of those apps will act as a gateway and therefore uses Spring Cloud Gateway as a dependency. Also I want to integrate service discovery with Spring Cloud…
6
votes
4 answers

Disable Spring Cloud Kubernetes in local

Small question on how to disable Spring Cloud Kubernetes in local mode please. The project is a simple SpringBoot + SpringCloud project deployed in Kubernetes. Hence, there is this dependency in the class path:
PatPanda
  • 3,644
  • 9
  • 58
  • 154
6
votes
2 answers

Spring Cloud Kubernetes: What are cluster-reader permissions?

According to Spring Cloud Kubernetes docs, in order to discover services/pods in RBAC enabled Kubernetes distros: you need to make sure a pod that runs with spring-cloud-kubernetes has access to the Kubernetes API. For any service accounts you…
Michal Foksa
  • 11,225
  • 9
  • 50
  • 68
6
votes
2 answers

Spring Cloud Kubernetes - Spring boot fails to start when config reload is enabled

I have this demo project which prints a label that is read from the configurations. This is my main class: @SpringBootApplication @EnableDiscoveryClient @RestController public class DemoApplication { private MyConfig config; private…
5
votes
2 answers

Spring Cloud Kubernetes application does not detect when it is running in a pod

Expected Behavior According to the Spring Cloud Kubernetes documentation, all that is necessary for a Spring application to detect when it's running in a pod is to add Spring Cloud Kubernetes to the classpath with the spring-cloud-kubernetes-all…
5
votes
3 answers

Spring Cloud Kubernetes ConfigMap reload not working

I was playing with Kubernetes in Minikube. I could able to deploy spring boot sample application into Kubernetes. I am exploring Kubernetes configMap. I could successfully run a spring boot application with a spring cloud starter and picking the…
4
votes
3 answers

Spring Cloud Kubernetes: Timeout waiting for informers cache to be ready

I'm attempting to take advantage of Spring Cloud Kubernetes in my Spring Boot-based microservice, namely autoconfiguration and service discovery. However, I get an error message (Timeout waiting for informers cache to be ready, is the kubernetes…
4
votes
4 answers

Spring Cloud Kubernetes + Spring Cloud Gateway: Unable to find instance for k8s service

I am using Spring Cloud Kubernetes + Spring Cloud Gateway(SCG) and I have some trouble to deploy my app on GKE. SCG does not find k8s service, I still get this error: There was an unexpected error (type=Service Unavailable, status=503). Unable to…
4
votes
2 answers

Spring Cloud Kubernetes - Spring boot not reading config map

I have a spring boot web app which simply prints a property that is passed in a Kubernetes' ConfigMap. This is my main class: @SpringBootApplication @EnableDiscoveryClient @RestController public class DemoApplication { private MyConfig config; …
3
votes
0 answers

Spring Cloud Kubernetes Configuration Watcher with Notification Recipient Not Based on Secret Name

I've recently heard about Spring Cloud Kubernetes Configuration Watcher in the spring-cloud-kubernetes project. As I understand it, it allows Spring Boot apps that expose the actuator/refresh endpoint to be notified of a change to a ConfigMap or…
3
votes
3 answers

ConfigMap data (yml format) - Kubernetes

I have an application.yml (Spring) file, which has almost 70 fields, want to move those fields to ConfigMap. In the process of setup ConfigMap, have realized all the 70 fields has be flatened example : webservice.endpoint.transferfund It's gonna be…
Molay
  • 1,154
  • 2
  • 19
  • 42
2
votes
1 answer

Which RBAC rules and permissions are required for Spring Cloud Kubernetes leader election to work on GKE?

We're using Spring Boot 3.0.5 with leader election from Spring Cloud Kubernetes version 3.0.2 (org.springframework.cloud:spring-cloud-kubernetes-fabric8-leader:3.0.2) that is based on the fabric8's Java client. However, after moving to a new…
2
votes
2 answers

How do I load properties from a Kubernetes configmap into my Spring Boot application using Spring Cloud?

I am attempting to load properties from a K8s configmap into my Spring Boot service using Spring Cloud Kubernetes Fabric8, as described in the Spring Cloud docs here. My configmap for my service looks like this: apiVersion: v1 kind:…
Mark
  • 4,970
  • 5
  • 42
  • 66
2
votes
1 answer

Refresh not working when using spring cloud starter and fabric8

I think that there is an issue when using these two dependencies in the same projet. I'm talking about spring-cloud-starter and spring-cloud-starter-kubernetes-fabric8-config. I'm using Spring Boot : 2.7.7 Spring Cloud : 2021.0.5 What i'm trying…
1
2 3 4 5 6 7