29 lines
718 B
YAML
29 lines
718 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: postgres-ingress
|
|
namespace: database
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: postgres
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: authentik
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: gitea
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: netronome
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: penpot
|
|
ports:
|
|
- protocol: TCP
|
|
port: 5432
|