spring-cloud-kubernetes: Watcher isn't triggering refresh when the target service is in another namespace.
Describe the bug Watcher is not triggering refresh when the target service is in another namespace.
I have this configmap which need to be shared between multiple services in different namespaces, I change the roles and the bindings to cluster roles, but isn’t working. there is anything else that I should do or is not intended to work like that?
I leave the definitions for each service, config and logs.
watcher.yaml
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
labels:
app: spring-cloud-kubernetes-configuration-watcher
name: spring-cloud-kubernetes-configuration-watcher
namespace: spring-cloud-system
spec:
ports:
- name: http
port: 8888
targetPort: 8888
selector:
app: spring-cloud-kubernetes-configuration-watcher
type: ClusterIP
- apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: spring-cloud-kubernetes-configuration-watcher
name: spring-cloud-kubernetes-configuration-watcher
namespace: spring-cloud-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: spring-cloud-kubernetes-configuration-watcher
name: spring-cloud-kubernetes-configuration-watcher:view
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: watcher-namespace-reader
subjects:
- kind: ServiceAccount
name: spring-cloud-kubernetes-configuration-watcher
namespace: spring-cloud-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: watcher-namespace-reader
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["configmaps", "pods", "services", "endpoints", "secrets"]
verbs: ["get", "list", "watch"]
- apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-cloud-kubernetes-configuration-watcher-deployment
namespace: spring-cloud-system
spec:
selector:
matchLabels:
app: spring-cloud-kubernetes-configuration-watcher
template:
metadata:
labels:
app: spring-cloud-kubernetes-configuration-watcher
spec:
serviceAccountName: spring-cloud-kubernetes-configuration-watcher
containers:
- name: spring-cloud-kubernetes-configuration-watcher
image: springcloud/spring-cloud-kubernetes-configuration-watcher:3.1.3
imagePullPolicy: IfNotPresent
env:
- name: LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_CLOUD_KUBERNETES_CONFIGURATION_WATCHER
value: DEBUG
- name: LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_CLOUD_KUBERNETES_CLIENT_CONFIG_RELOAD
value: DEBUG
- name: LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_CLOUD_KUBERNETES_COMMONS_CONFIG_RELOAD
value: DEBUG
- name: SPRING_CLOUD_KUBERNETES_RELOAD_NAMESPACES_0
value: spring-cloud-system
- name: SPRING_CLOUD_KUBERNETES_CONFIGURATION_WATCHER_REFRESHDELAY
value: "30000"
- name: SPRING_CLOUD_KUBERNETES_RELOAD_ENABLED
value: "TRUE"
readinessProbe:
httpGet:
port: 8888
path: /actuator/health/readiness
livenessProbe:
httpGet:
port: 8888
path: /actuator/health/liveness
ports:
- containerPort: 8888
discovery.yaml
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
labels:
app: spring-cloud-kubernetes-discoveryserver
name: spring-cloud-kubernetes-discoveryserver
namespace: spring-cloud-system
spec:
ports:
- name: http
port: 80
targetPort: 8761
selector:
app: spring-cloud-kubernetes-discoveryserver
type: ClusterIP
- apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: spring-cloud-kubernetes-discoveryserver
name: spring-cloud-kubernetes-discoveryserver
namespace: spring-cloud-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: spring-cloud-kubernetes-discoveryserver
name: spring-cloud-kubernetes-discoveryserver:view
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: discovery-namespace-reader
subjects:
- kind: ServiceAccount
name: spring-cloud-kubernetes-discoveryserver
namespace: spring-cloud-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: discovery-namespace-reader
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["pods", "services", "endpoints"]
verbs: ["get", "list", "watch"]
- apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-cloud-kubernetes-discoveryserver-deployment
namespace: spring-cloud-system
spec:
selector:
matchLabels:
app: spring-cloud-kubernetes-discoveryserver
template:
metadata:
labels:
app: spring-cloud-kubernetes-discoveryserver
spec:
serviceAccountName: spring-cloud-kubernetes-discoveryserver
containers:
- name: spring-cloud-kubernetes-discoveryserver
image: springcloud/spring-cloud-kubernetes-discoveryserver:3.1.0
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
port: 8761
path: /actuator/health/readiness
livenessProbe:
httpGet:
port: 8761
path: /actuator/health/liveness
ports:
- containerPort: 8761
config.yaml
kind: ConfigMap
apiVersion: v1
metadata:
name: example-configmap
namespace: spring-cloud-system
labels:
spring.cloud.kubernetes.config: "true"
annotations:
spring.cloud.kubernetes.configmap.apps: "foo-service"
data:
features.newFeatureEnabled: "false"
watcher logs
2024-10-23T15:11:58.316Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:11:58.316Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:11:58.316Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] o.s.c.k.c.watcher.WatcherUtil : will schedule remote refresh based on apps : [helloworld-service]
2024-10-23T15:11:58.316Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : onEvent config-map: class V1ConfigMap {
apiVersion: v1
binaryData: null
data: {asd=asdd, features.newFeatureEnabled=false}
immutable: null
kind: ConfigMap
metadata: class V1ObjectMeta {
annotations: {kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","data":{"asd":"asdd","features.newFeatureEnabled":"false"},"kind":"ConfigMap","metadata":{"annotations":{"spring.cloud.kubernetes.configmap.apps":"helloworld-service"},"labels":{"spring.cloud.kubernetes.config":"true"},"name":"example-configmap","namespace":"spring-cloud-system"}}
, spring.cloud.kubernetes.configmap.apps=helloworld-service}
creationTimestamp: 2024-10-23T15:10:14Z
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
labels: {spring.cloud.kubernetes.config=true}
managedFields: [class V1ManagedFieldsEntry {
apiVersion: v1
fieldsType: FieldsV1
fieldsV1: {f:data={.={}, f:asd={}, f:features.newFeatureEnabled={}}, f:metadata={f:annotations={.={}, f:kubectl.kubernetes.io/last-applied-configuration={}, f:spring.cloud.kubernetes.configmap.apps={}}, f:labels={.={}, f:spring.cloud.kubernetes.config={}}}}
manager: kubectl-client-side-apply
operation: Update
subresource: null
time: 2024-10-23T15:11:58Z
}]
name: example-configmap
namespace: spring-cloud-system
ownerReferences: null
resourceVersion: 47856690
selfLink: null
uid: 03b56dbb-4465-4668-9b31-c433cacf0aad
}
}
2024-10-23T15:11:58.317Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] o.s.c.k.c.watcher.WatcherUtil : Scheduling remote refresh event to be published for config-map: with appName : helloworld-service to be published in 30000 milliseconds
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : environment from locateMapPropertySources : ApplicationReactiveWebEnvironment {activeProfiles=[kubernetes], defaultProfiles=[default], propertySources=[MapPropertySource {name='server.ports'}, ConfigurationPropertySourcesPropertySource {name='configurationProperties'}, PropertiesPropertySource {name='systemProperties'}, OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}, RandomValuePropertySource {name='random'}, CachedRandomPropertySource {name='cachedrandom'}, MapPropertySource {name='KUBERNETES_NAMESPACE_PROPERTY_SOURCE'}, CompositePropertySource {name='composite-configmap', propertySources=[KubernetesClientConfigMapPropertySource {name='configmap.spring-cloud-kubernetes-configuration-watcher.spring-cloud-system'}]}, CompositePropertySource {name='composite-secrets', propertySources=[]}, OriginTrackedMapPropertySource {name='Config resource 'class path resource [application.yml]' via location 'optional:classpath:/''}, MapPropertySource {name='springCloudClientHostInfo'}, MapPropertySource {name='spring.integration.poller'}, MapPropertySource {name='kafkaBinderDefaultProperties'}, {name='Management Server'}]}
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : sources from locateMapPropertySources : [KubernetesClientConfigMapPropertySource {name='configmap.spring-cloud-kubernetes-configuration-watcher.spring-cloud-system'}]
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : environment from findPropertySources: ApplicationReactiveWebEnvironment {activeProfiles=[kubernetes], defaultProfiles=[default], propertySources=[MapPropertySource {name='server.ports'}, ConfigurationPropertySourcesPropertySource {name='configurationProperties'}, PropertiesPropertySource {name='systemProperties'}, OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}, RandomValuePropertySource {name='random'}, CachedRandomPropertySource {name='cachedrandom'}, MapPropertySource {name='KUBERNETES_NAMESPACE_PROPERTY_SOURCE'}, CompositePropertySource {name='composite-configmap', propertySources=[KubernetesClientConfigMapPropertySource {name='configmap.spring-cloud-kubernetes-configuration-watcher.spring-cloud-system'}]}, CompositePropertySource {name='composite-secrets', propertySources=[]}, OriginTrackedMapPropertySource {name='Config resource 'class path resource [application.yml]' via location 'optional:classpath:/''}, MapPropertySource {name='springCloudClientHostInfo'}, MapPropertySource {name='spring.integration.poller'}, MapPropertySource {name='kafkaBinderDefaultProperties'}, {name='Management Server'}]}
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : environment sources from findPropertySources : [MapPropertySource {name='server.ports'}, ConfigurationPropertySourcesPropertySource {name='configurationProperties'}, PropertiesPropertySource {name='systemProperties'}, OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}, RandomValuePropertySource {name='random'}, CachedRandomPropertySource {name='cachedrandom'}, MapPropertySource {name='KUBERNETES_NAMESPACE_PROPERTY_SOURCE'}, CompositePropertySource {name='composite-configmap', propertySources=[KubernetesClientConfigMapPropertySource {name='configmap.spring-cloud-kubernetes-configuration-watcher.spring-cloud-system'}]}, CompositePropertySource {name='composite-secrets', propertySources=[]}, OriginTrackedMapPropertySource {name='Config resource 'class path resource [application.yml]' via location 'optional:classpath:/''}, MapPropertySource {name='springCloudClientHostInfo'}, MapPropertySource {name='spring.integration.poller'}, MapPropertySource {name='kafkaBinderDefaultProperties'}, {name='Management Server'}]
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : findPropertySources : [configmap.spring-cloud-kubernetes-configuration-watcher.spring-cloud-system]
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : no changes found, reload will not happen
2024-10-23T15:11:58.324Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] o.s.c.k.c.c.reload.ConfigReloadUtil : No change detected in config maps/secrets, reload will not happen
2024-10-23T15:15:12.125Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47856690 and Watch connection expired: too old resource version: 47856690 (47857398) , will retry w/o resourceVersion next time
2024-10-23T15:15:12.126Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:15:13.126Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:15:13.134Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:15:13.135Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:15:13.135Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:15:13.135Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:16:20.904Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47856690 and Watch connection expired: too old resource version: 47856690 (47858280) , will retry w/o resourceVersion next time
2024-10-23T15:16:20.905Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:16:21.905Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:16:21.912Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:16:21.913Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:16:21.913Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:16:21.913Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:22:46.146Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47859239 and Watch connection expired: too old resource version: 47859239 (47863297) , will retry w/o resourceVersion next time
2024-10-23T15:22:46.146Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:22:47.146Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:22:47.154Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:22:47.154Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:22:47.155Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:22:47.155Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:24:21.922Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47860135 and Watch connection expired: too old resource version: 47860135 (47864577) , will retry w/o resourceVersion next time
2024-10-23T15:24:21.922Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:24:22.922Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:24:22.929Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:24:22.930Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:24:22.930Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:24:22.930Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:27:59.164Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47865172 and Watch connection expired: too old resource version: 47865172 (47867390) , will retry w/o resourceVersion next time
2024-10-23T15:27:59.164Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:28:00.165Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:28:00.172Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:28:00.172Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:28:00.172Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:28:00.172Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-10-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:31:59.939Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : ResourceVersion 47866423 and Watch connection expired: too old resource version: 47866423 (47870575) , will retry w/o resourceVersion next time
2024-10-23T15:31:59.939Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Watch expired, will re-list-watch soon
2024-10-23T15:32:00.940Z INFO 1 --- [spring-cloud-kubernetes-configuration-watcher] [s.V1ConfigMap-1] i.k.c.informer.cache.ReflectorRunnable : class io.kubernetes.client.openapi.models.V1ConfigMap#Start listing and watching...
2024-10-23T15:32:00.947Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap example-configmap was updated in namespace spring-cloud-system
2024-10-23T15:32:00.947Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
2024-10-23T15:32:00.947Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : ConfigMap kube-root-ca.crt was updated in namespace spring-cloud-system
2024-10-23T15:32:00.947Z DEBUG 1 --- [spring-cloud-kubernetes-configuration-watcher] [ool-15-thread-1] sClientEventBasedConfigMapChangeDetector : data in configmap has not changed, will not reload
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (11 by maintainers)
I will mark it as waiting for feedback and if we don’t hear back the bot will close it.
I know the struggle to create such a sample, because of the number of parameters involved… Also, I think its about time I create various samples with working projects that I can refer to in the future. It would be easier for everyone to bounce off.
So here is a working example: https://github.com/wind57/spring-k8s-samples/tree/config-watcher-multiple-namespaces
there is a configmap in namespace
defaultand two services in namespacesaanddefault, that both consume the same configmap. Once the configmap changes, config watcher reloads them both. Take a look at it.Thank you.