-
Notifications
You must be signed in to change notification settings - Fork 44
Unable to publish events to the service #41
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
Comments
You should try to connect to the NATS service to be able to publish messages to NATS Streaming. I recommend you to look at trying to connect to the service created by the NATS Operator first: https://github.com/nats-io/nats-operator/ |
I changed the type of service to
But I was able to connect to that service from this non-streaming example. Since that service created by NATS operator only contains the labels of NATS cluster, how that service would connect to the NATS streming cluster? |
Hi @BuddhiWathsala , could you share more details and code from your solution? I'm facing similiar problem: I have minikube with nats-streaming, and want to create ingress for it, so that I can send message to it from golang script. Which minikube version are you using? |
@Koshmaar, you can try the following steps. And here I've used
|
@BuddhiWathsala Thank you very much :) It's detailed and helpful description. |
I installed the
nats-streaming-operator
to my minikube cluster. It installed without any issue. Sincenats
service created bynats-operator
is aClusterIP
one I unable to send data into that service externally. So I tried two approaches to send data.Approach 1
Create a service like below of type
LoadBalancer
and try to send data.Approach 2
Create a different kubernetes deployment of https://github.com/nats-io/go-nats-streaming/tree/master/examples and use that deployment to send data.
I used the following command to send requests.
But from both approaches, I got an error as
So I want to know that how can I external send data to
nats-streaming-server
in the kubernetes cluster?Specifications
The text was updated successfully, but these errors were encountered: