diff options
Diffstat (limited to 'yaml/policies')
| -rw-r--r-- | yaml/policies/network.yaml | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/yaml/policies/network.yaml b/yaml/policies/network.yaml new file mode 100644 index 0000000..2af8a27 --- /dev/null +++ b/yaml/policies/network.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: +  name: allow-cas-postgres +spec: +  podSelector: +    matchLabels: +      app: cas +  policyTypes: +  - Ingress +  ingress: +  - from: +      - podSelector: +          matchLabels: +            app: postgres +    ports: +    - protocol: TCP +      port: 5432  |