<p>I'm trying to setup an VPC Peering from my MongoDB Atlas Cluster to my Kubernetes EKS Cluster on AWS. The Peering is established successfully but i get no connection to the cluster on my pod's.</p>

<p>The peering is setup.
<a href="https://i.stack.imgur.com/7qR8n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7qR8n.png" alt="Peering"></a></p>

<p>The default entry for the whitelist ist added as well. Once the connection works i will replace it with a security Group.
<a href="https://i.stack.imgur.com/KTysQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KTysQ.png" alt="IP Whitelist"></a></p>

<p>The peering on AWS is accepted and "DNS resolution from requester VPC to private IP" is enabled.
<a href="https://i.stack.imgur.com/TbPyF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TbPyF.png" alt="Peering AWS"></a></p>

<p>The route as been added to the Public Route Table of the K8S Cluster.
<a href="https://i.stack.imgur.com/OH7CH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OH7CH.png" alt="Route AWS"></a></p>

<p>When i connect to a pod and try to establish a connection with the following command:</p>

<pre><code># mongo "mongodb://x.mongodb.net:27017,y.mongodb.net:27017,z.mongodb.net:27017/test?replicaSet=Cluster0-shard-0" --ssl --authenticationDatabase admin --username JackBauer
</code></pre>

<p>I get "CONNECT_ERROR" for every endpoint.</p>

<p>What am I missing?</p>

<p>NOTE:
I've just created a new paid cluster and the VPC is working perfectly. Might this feature be limited to paid clusters only?</p>

Thomas Spycher
<p>Well... as the documentation states:</p>

<blockquote>
  <p>You cannot configure Set up a Network Peering Connection on M0 Free
  Tier or M2/M5 shared clusters.</p>
</blockquote>

<p>Peering is not working on shared Cluster. Which makes, after i think about it, totally sense. </p>
