43 lines
854 B
YAML
43 lines
854 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: planka-ingress
|
|
namespace: wedding-planner
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: planka
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: kube-system
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: traefik
|
|
ports:
|
|
- protocol: TCP
|
|
port: 1337
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: postgres-ingress
|
|
namespace: wedding-planner
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: planka-postgres
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app: planka
|
|
ports:
|
|
- protocol: TCP
|
|
port: 5432
|