diff --git a/etherpad/application.yml b/etherpad/application.yml index 171b94f..848282e 100644 --- a/etherpad/application.yml +++ b/etherpad/application.yml @@ -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