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
Copy file name to clipboardExpand all lines: CLOUDNAT.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ In the [previous article](README.md) we told you about how to connect to MongoDB
6
6
7
7
MongoDB Atlas offers three methods of securing the network:
8
8
9
-

9
+
<imgsrc="images/access_options.png">
10
10
11
11
1.`IP Access List` where you can manage static ip addresses of hosts that are allowed to connect to your database clusters. This is a very easy way to achieve the goal, especially if you want to connect a single VM (virtual machine) that has a static public IP. A good thing about this way is that you can use this setup with all tiers MongoDB Atlas offers, even with the smallest and free of charge `M0 Sandbox`.<br>
12
12
However, if you have a kubernetes cluster with several nodes, this option is almost useless. First of all, nodes of the cluster must have public ip addresses - a setup that is normally not favoured for security reasons. Secondly, the public ip of a node in the cluster is most likely to be changed at some point, and therefore MongoDB Atlas might start to refuse connections from this node.<br>
@@ -20,7 +20,7 @@ So, our challenge was to whitelist a Google Kubernetes Engine (GKE) cluster in M
20
20
21
21
Our goal is to set up the GKE cluster so that it gets an IP address which is public and static. We use Cloud NAT for that:
22
22
23
-

23
+
<img src=images/cloud-nat.png>
24
24
25
25
Accordingly to this picture we are going to do following steps:
@@ -97,25 +96,25 @@ You have to fill following fields out:
97
96
98
97
In the new form you just need to give a proper name for a router and click on `Create`:
99
98
100
-

99
+
<imgsrc="images/create-router.png"width=300>
101
100
102
101
Now you are back to the previous form and your router is already set up.<br>
103
102
104
103
The last step you have to do is to create a static ip address for our router. Change the selection of the field `NAT IP addresses` to `manual`, let the other fields like they are.
0 commit comments