From 561e438ed4b549cf1cf3cb62439ba550fa32504b Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Tue, 14 May 2024 00:05:15 +0800 Subject: [PATCH] fix(immich): netpols to huggingface --- kube/deploy/apps/immich/app/netpol.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kube/deploy/apps/immich/app/netpol.yaml diff --git a/kube/deploy/apps/immich/app/netpol.yaml b/kube/deploy/apps/immich/app/netpol.yaml new file mode 100644 index 00000000..398bdd5f --- /dev/null +++ b/kube/deploy/apps/immich/app/netpol.yaml @@ -0,0 +1,18 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/cilium.io/ciliumnetworkpolicy_v2.json +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: &app immich + namespace: *app +spec: + endpointSelector: + matchLabels: + app.kubernetes.io/name: *app + app.kubernetes.io/component: ml + egress: + - toFQDNs: + - matchPattern: "huggingface.co" + toPorts: + - ports: + - port: "443"