diff --git a/shared/networkpolicies/allow-to-database.yaml b/shared/networkpolicies/allow-to-database.yaml
index d4123fa58fcba6cf107a0c7675a58b8627b70fed..b472c8ed1e44e0e280a72030dbe561690c72b5de 100644
--- a/shared/networkpolicies/allow-to-database.yaml
+++ b/shared/networkpolicies/allow-to-database.yaml
@@ -3,8 +3,6 @@ kind: NetworkPolicy
 metadata:
   name: allow-to-database
 spec:
-  policyTypes:
-  - egress
   egress:
   - to:
       - ipBlock:
@@ -13,9 +11,11 @@ spec:
       - protocol: TCP
         port: 9000
   - to:
-      podSelector:
-        matchLabels:
-          application: spilo
+      - podSelector:
+          matchLabels:
+            application: spilo
   podSelector:
     matchLabels:
       application: spilo
+  policyTypes:
+  - Egress
\ No newline at end of file