You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
I had some discussion in issue #708 related to this with @andresmgot . I'm creating new issues since this is a different issue.
What happened:
kubeless trigger nats publish --url nats://nats.nats-io.svc.cluster.local:4222 --topic test --message "Hello World"
FATA[0000] nats: no servers available for connection
What you expected to happen:
As with kafka, I can get response back. I'm expecting similar behavior from nats too.
kubeless topic publish --topic test-topic --data "Hello World"
Hello World
Although kafka service available only as clusterIP.
kubectl get svc -n kubeless
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
broker ClusterIP None <none> 9092/TCP 2d
kafka ClusterIP 100.66.186.6 <none> 9092/TCP 2d
zoo ClusterIP None <none> 9092/TCP,3888/TCP 2d
zookeeper ClusterIP 100.68.51.249 <none> 2181/TCP 2d
How to reproduce it (as minimally and precisely as possible):
The main reason for that is that we control the installation of Kafka with one of our manifest but in the case of NATS we are just pointing users to the upstream manifest to install NATS. If we do some of the assumptions that we do with Kafka those won't be true in the future if they change the manifest.
Having said that, it's true that the command may be confusing. We are open to PRs to address that.
@andresmgot since the function developers know where's the nats cluster is, why don't we add the nats cluster internal service URL to the nats-controller-trigger and when execute the kubeless trigger nats publish --topic test --message "Hello World" command, let the trigger-controller takes care of that?
@gkarthiks we should not assume that the user has direct access to the controller. The controller may be protected by RBAC rules to guarantee restricted access. That's why the publish command is independent from the controller.
Is this a BUG REPORT or FEATURE REQUEST?:
I had some discussion in issue #708 related to this with @andresmgot . I'm creating new issues since this is a different issue.
What happened:
What you expected to happen:
As with kafka, I can get response back. I'm expecting similar behavior from nats too.
Although kafka service available only as clusterIP.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):kubeless version
):The text was updated successfully, but these errors were encountered: