<p>My Kafka cluster runs on kubernetes and I am using a custom image to run Kafka Connect with required mongoDB official source and sink connectors.</p>
<p>My mongoDB instance also runs on kubernetes. My issue is, I am unable to connect my live DB with Kafka Connect.</p>
<p>My connector config currently looks like this,</p>
<pre><code>curl -X PUT \
     -H &quot;Content-Type: application/json&quot; \
     --data '{
               &quot;connector.class&quot;:&quot;com.mongodb.kafka.connect.MongoSourceConnector&quot;,
                    &quot;tasks.max&quot;: &quot;1&quot;,
                    &quot;connection.uri&quot;: &quot;mongodb://192.168.190.132:27017,192.168.190.137:27017&quot;,
                    &quot;database&quot;: &quot;tractor&quot;,
                    &quot;collection&quot;: &quot;job&quot;,
                    &quot;topic.prefix&quot;: &quot;testing-mongo&quot;
                    
          }' \
     http://10.108.202.171:8083/connectors/mongo_source_job/config
</code></pre>

<p>Thanks for your reply. The issue was the stemming from TLS. I modified my config as follows,</p>
<pre><code>&quot;connection.uri&quot;: &quot;mongodb://192.168.190.132:27017,192.168.190.137:27017/?tlsInsecure=true&quot;
</code></pre>
<p>Its working now!</p>
