fix(redbot): allow PyPi & GitHub

This commit is contained in:
JJGadgets
2024-02-23 04:47:31 +08:00
parent 9382fd9587
commit 3ff2398074
2 changed files with 21 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ spec:
pod:
labels:
egress.home.arpa/discord: "allow"
egress.home.arpa/github: "allow"
egress.home.arpa/pypi: "allow"
containers:
main:
image: &img

View File

@@ -237,6 +237,25 @@ spec:
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: labelled-allow-egress-pypi
spec:
endpointSelector:
matchLabels:
egress.home.arpa/pypi: allow
egress:
- toFQDNs:
- matchPattern: "pypi.org"
toPorts:
- ports:
- port: "443"
protocol: "TCP"
- port: "443"
protocol: "UDP"
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: labelled-allow-egress-mullvad
spec: