1
0
forked from k-space/kube

etherpad: Add network policy

This commit is contained in:
Lauri Võsandi 2023-09-20 15:08:03 +03:00
parent efc76d7a10
commit f0db5849c8

View File

@ -107,3 +107,31 @@ spec:
tls:
- hosts:
- "*.k-space.ee"
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: etherpad
namespace: etherpad
spec:
podSelector:
matchLabels:
app: etherpad
policyTypes:
- Ingress
- Egress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: traefik
ports:
- port: 9001
protocol: TCP
egress:
- ports:
- port: 3306
protocol: TCP
to:
- ipBlock:
cidr: 172.20.36.1/32