24 lines
640 B
YAML
24 lines
640 B
YAML
# Egress from migrate, store-check and region pods to exactly the AEvolution
|
|
# PostgreSQL VM (pg-forge-01) and nothing else (ADR-0070).
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: aevolution-database-egress
|
|
labels:
|
|
app.kubernetes.io/part-of: aevolution
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "-2"
|
|
spec:
|
|
podSelector:
|
|
matchExpressions:
|
|
- key: app.kubernetes.io/component
|
|
operator: In
|
|
values: [migrate, store-check, region]
|
|
policyTypes: [Egress]
|
|
egress:
|
|
- to:
|
|
- ipBlock:
|
|
cidr: 172.10.1.127/32
|
|
ports:
|
|
- {protocol: TCP, port: 5432}
|