43 lines
845 B
YAML
43 lines
845 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: wekan-ingress
|
|
namespace: wedding-planner
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: wekan
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: kube-system
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: traefik
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8080
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: ferretdb-ingress
|
|
namespace: wedding-planner
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: ferretdb
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app: wekan
|
|
ports:
|
|
- protocol: TCP
|
|
port: 27017
|