diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml
index b8c86d9c5e85f9b95de9106041511a370f766b22..efe20f5232454748e707d50e2fb5539dc5736cfb 100644
--- a/src/main/helm/templates/network_policy.yaml
+++ b/src/main/helm/templates/network_policy.yaml
@@ -18,13 +18,13 @@ spec:
 {{ toYaml . | indent 2 }}
 {{- end }}
   egress:
-    # - to:
-    #   - podSelector:
-    #       matchLabels:
-    #         component: ozgcloud-mongodb
-    #   ports:
-    #     - port: 27017
-    #       protocol: TCP
+    - to:
+      - podSelector:
+          matchLabels:
+            component: ozgcloud-mongodb
+      ports:
+        - port: 27017
+          protocol: TCP
     # public keycloak ip
     - to:
       - ipBlock:
diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml
index fa732251215bec6dc98f849acee012ed1a94b16c..48a5811fb8c081d3c32fbf9389e6a23fce3e80d7 100644
--- a/src/test/helm/network_policy_test.yaml
+++ b/src/test/helm/network_policy_test.yaml
@@ -67,13 +67,13 @@ tests:
               - ports:
                   - port: 8080
             egress:
-              # - to:
-              #     - podSelector:
-              #         matchLabels:
-              #           component: ozgcloud-mongodb
-              #   ports:
-              #     - port: 27017
-              #       protocol: TCP
+              - to:
+                  - podSelector:
+                      matchLabels:
+                        component: ozgcloud-mongodb
+                ports:
+                  - port: 27017
+                    protocol: TCP
               # public keycloak ip
               - to:
                   - ipBlock: