bthj edited a comment on issue #2684:
URL: https://github.com/apache/camel-k/issues/2684#issuecomment-939039167
I tried the sink kamelet and it's pod logs also show the same error, on not
being able to connect to `127.0.0.1:27017`:
```
Exception in monitor thread while connecting to server 127.0.0.1:27017:
com.mongodb.MongoSocketOpenException: Exception opening socket
```
when deployed from a declaration like:
```
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: mongodb-sink-binding
spec:
source:
ref:
kind: Channel
apiVersion: messaging.knative.dev/v1
name: isgattchannel
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: mongodb-sink
properties:
collection: "collection-name"
database: "dbname"
hosts:
"[shard1].mongodb.net:27017,[shard2]:27017,[shard3].mongodb.net:27017"
createCollection: true
password: "pass"
username: "user"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]