Closed tarun-bb closed 2 months ago
The error comes from your codebase btw.
If you can provide a minimal reproducible example we can run locally where the problem can be seen with clear instructions, I will take a look what is going on.
Thank you
@ryanjbaxter can you please add the "feedback" label? thank you
@ryanjbaxter I actually tried it locally with minikube and very small application setup(not the one above and also latest version) and it did worked there. However I noticed when it worked on my local i see these log lines from o.s.c.k.f.l.Fabric8ServicesListSupplier
but no such logs on my client server when it fail actually to find that server id
Fabric8ServicesListSupplier
is used when we have to deal with load-balancing (and you included that dependency or enabled load-balancing). From your initial description of what you are trying to do, you are most probably indeed using load-balancing; but without a sample and clear instructions on what you are trying to, I don't think we will be able to help you.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Describe the bug I am trying to invoke from
serviceA
innamespace1
to myserviceB
innamespace2
in my k8 env. It works fine when I useSPRING_CLOUD_KUBERNETES_DISCOVERY_ALL_NAMESPACES: true
(with clusterRole, clusterRoleBinding to the ServiceAccount they use)but when i turn it off and use specific namespaces like below then it doesn't work and i see an error
Service Instance cannot be null, serviceId: serviceB
spring-cloud-starter-kubernetes-fabric8
version is : 3.0.5However with specific namespace, I do see logs says but somehow the restTemplate returns this error.