If you are using the Kubernetes Agent to import services into Cortex, but aren't seeing all expected namespaces when importing a service in Cortex using Kubernetes, make sure `app.namespace`
is commented out in `values.yaml`
:
app:
# baseUrl: http://host.minikube.internal:8080
baseUrl: https://api.getcortexapp.com
keySecret: cortex-key
# namespace: someNamespace
If `app.namespace`
is defined, the Cortex Kubernetes Agent will only be able to discover services from that namespace. This behavior can be confirmed with a backend log similar to:
INFO 1 --- [ scheduling-1] k8sagent : Looking for stateful sets in namespace <app.namespace>
To ensure Cortex can discover services from all namespaces, comment out `app.namespace`
, then restart your pods. Then, you will be able to see all expected namespaces when importing new services:
Comments
0 comments
Article is closed for comments.