mirror of
https://github.com/nold360/hive-apps
synced 2025-01-03 04:01:14 +00:00
fix(nextcloud): cnpg networkpolicy for imprt
This commit is contained in:
parent
fa0c074bfa
commit
6f0fff0ca0
2 changed files with 18 additions and 15 deletions
|
@ -3,6 +3,8 @@ config:
|
|||
networkPolicy:
|
||||
groups:
|
||||
- internet
|
||||
rules:
|
||||
- allow-cnpg-nextcloud
|
||||
|
||||
labels:
|
||||
environment: external
|
||||
|
|
|
@ -43,6 +43,22 @@ networkPolicy:
|
|||
matchLabels:
|
||||
name: kube-system
|
||||
|
||||
# Cloudnative PG
|
||||
allow-cnpg-nextcloud:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
cnpg.io/cluster: nextcloud
|
||||
policyTypes:
|
||||
- Egress
|
||||
egress:
|
||||
- ports:
|
||||
- port: 443
|
||||
protocol: TCP
|
||||
to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
name: kube-system
|
||||
|
||||
# Allow access to internet proxy
|
||||
allow-proxy:
|
||||
podSelector: {}
|
||||
|
@ -50,8 +66,6 @@ networkPolicy:
|
|||
- Egress
|
||||
egress:
|
||||
- ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
- port: 3128
|
||||
protocol: TCP
|
||||
to:
|
||||
|
@ -100,17 +114,6 @@ networkPolicy:
|
|||
- port: 2222
|
||||
protocol: TCP
|
||||
|
||||
# Allow Drone-Runner to access Drone
|
||||
allow-runner:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
app.heqet.gnu.one/name: drone-runner
|
||||
|
||||
# Allow Woodpacker-Agent to access Woodpacker Server
|
||||
allow-agent:
|
||||
podSelector: {}
|
||||
|
@ -151,5 +154,3 @@ networkPolicy:
|
|||
- namespaceSelector:
|
||||
matchLabels:
|
||||
environment: external
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue