Fix: ingress-external network policy

This commit is contained in:
nold 2022-01-06 11:48:28 +01:00
parent 05f57acc11
commit 1163261860
5 changed files with 33 additions and 1 deletions

View file

@ -8,6 +8,9 @@ config:
- allow-runner - allow-runner
- allow-minio - allow-minio
labels:
environment: external
apps: apps:
- name: drone - name: drone
repoURL: https://github.com/nold360/drone-charts.git repoURL: https://github.com/nold360/drone-charts.git

View file

@ -5,6 +5,10 @@ config:
- internet - internet
rules: rules:
- allow-ssh - allow-ssh
labels:
environment: external
apps: apps:
- name: gitea - name: gitea
repoURL: https://dl.gitea.io/charts/ repoURL: https://dl.gitea.io/charts/

View file

@ -3,6 +3,8 @@ config:
networkPolicy: networkPolicy:
rules: rules:
- allow-dns - allow-dns
- allow-ingress-traffic
- allow-external-services
apps: apps:
- name: ingress-external - name: ingress-external

View file

@ -3,6 +3,10 @@ config:
networkPolicy: networkPolicy:
groups: groups:
- internet - internet
labels:
environment: external
apps: apps:
- name: nextcloud - name: nextcloud
repoURL: https://nextcloud.github.io/helm repoURL: https://nextcloud.github.io/helm

View file

@ -68,7 +68,7 @@ networkPolicy:
- from: - from:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
app.heqet.gnu.one/name: ingress-external project.heqet.gnu.one/name: ingress-external
# Allow SSH for Gitea # Allow SSH for Gitea
allow-ssh: allow-ssh:
@ -134,3 +134,22 @@ networkPolicy:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
name: minio name: minio
allow-ingress-traffic:
podSelector: {}
policyTypes:
- Ingress
ingress:
- {}
allow-external-services:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- namespaceSelector:
matchLabels:
environment: external