FastStream NATS connection fails with internal Kubernetes DNS name but works with direct ClusterIP #2779
Unanswered
natenberenstein
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, not sure if this is the right place to ask this question, but hopefully somebody would be able to clarify something for me.
Description
I'm experiencing a DNS resolution issue with FastStream connecting to NATS in Kubernetes.
Setup
natsnamespace (helm chart: https://github.com/nats-io/k8s/blob/nats-1.3.16/helm/charts/nats/values.yaml)ainamespaceThe Issue
Code
Question
Given that, why would FastStream fail to connect when using the internal Kubernetes DNS name, but succeed when using the direct ClusterIP? Is there something specific about how FastStream or the underlying asyncio-nats library handles DNS resolution that I'm missing? Or is this more related to how Nats Jetstream is configured in the Kubernetes cluster?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions