fix(netpol)

This commit is contained in:
nold 2022-12-11 11:30:44 +01:00
parent 19ff908786
commit 7b4ef9c968
2 changed files with 6 additions and 7 deletions

View file

@ -5,6 +5,7 @@ config:
- internet
rules:
- allow-minio
- allow-cnpg-nextcloud
labels:
environment: external

View file

@ -16,6 +16,7 @@ networkPolicy:
- allow-dns
- allow-proxy
- allow-ingress
- allow-ingress-traffic
rules:
# Allow DNS to all Namespaces, deny everything else
@ -45,9 +46,7 @@ networkPolicy:
# Cloudnative PG
allow-cnpg-nextcloud:
podSelector:
matchLabels:
cnpg.io/cluster: nextcloud
podSelector: {}
policyTypes:
- Egress
egress:
@ -55,9 +54,8 @@ networkPolicy:
- port: 443
protocol: TCP
to:
- namespaceSelector:
matchLabels:
name: kube-system
- ipBlock:
cidr: 10.43.0.1/32
# Allow access to internet proxy
allow-proxy:
@ -136,7 +134,7 @@ networkPolicy:
to:
- namespaceSelector:
matchLabels:
name: minio
app.heqet.gnu.one/name: minio
allow-ingress-traffic:
podSelector: {}