-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring "spring.cloud.kubernetes.secret.apps" is not working #1548
Comments
A couple of things...
|
I was using version 2.0.1 as mentioned in the official documentation. When you asked about the version of the Watcher, it suddenly occurred to me that the version given in the documentation might be outdated and incompatible. And that's indeed the case, after updating to version 3.1.0, everything is now working fine! Sorry for the fuss, and thank you for the prompt reply! |
Awesome! Please dont hesitate to ask any more questions if needed. |
@Famezyy can you give a link to the docs you were referring to? |
@ryanjbaxter sure, below is the link I was looking into: the image version is mentioned as ...
containers:
- name: spring-cloud-kubernetes-configuration-watcher
image: springcloud/spring-cloud-kubernetes-configuration-watcher:2.0.1-SNAPSHOT
imagePullPolicy: IfNotPresent
... |
My application can read the initial value from the Secret when the service starts. However, if I modify the value in the Secret, the application is unable to refresh and recognize the updated value. Below is the Secret manifest that I used:
I could also see that the Watcher detected the change but it got stuck during scheduling phrase, seems it could not find the service:
If I hit the "actuator/refresh" endpoint manually then the value can be refreshed. Also if I use the same name for Secret as app name (cloud-k8s-app) then the Watcher can find the app and send refresh request successfully.
Just found the same issue for "spring.cloud.kubernetes.configmap.apps", Watcher can not find the app mentioned in this annotation. the version of spring cloud kubernetes I used was 3.1.0.
The text was updated successfully, but these errors were encountered: