Skip to content

Commit

Permalink
fix: networkpolicy allow immich to jumpcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
timtorChen committed Apr 9, 2024
1 parent 3aa4203 commit 1ff000e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions kubernetes/mydata/immich/app/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,28 @@ specs:
port: "5432"
- protocol: TCP
port: "6379"
# allow immich-server to jumpcloud endpoint
- endpointSelector:
matchLabels:
app.kubernetes.io/name: immich
app.kubernetes.io/component: server
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
k8s-app: kube-dns
toPorts:
- ports:
- protocol: ANY
port: "53"
rules:
dns: &sso
- matchPattern: "oauth.id.jumpcloud.com"
- toFQDNs: *sso
toPorts:
- ports:
- protocol: TCP
port: "443"
# allow machine-learning download model from huggingface.co
- endpointSelector:
matchLabels:
Expand Down

0 comments on commit 1ff000e

Please sign in to comment.