I have a kubernetes cluster with serviceA on namespaceA and serviceB on namespaceB.
I want, from serviceA, use kubernetes service discovery to programmatically list serviceB. I am planning to use spring cloud kubernetes ( @EnableDiscoveryClient ).
However, there is a company wide policy to block the use of the configuration below that should have solved the problem:
spring.cloud.kubernetes.discovery.all-namespaces=true
Is there any way to circumvent the problem? Maybe assign serviceB to two different namespaces or some other permission/configuration that I am not aware of?
spring.cloud.kubernetes.discovery.all-namespaces
setting is not mentioned in the link you have provided. Could you please elaborate more on what your problem actually is? – Goddaughter