fix(authentik): wrong cloudflared ingress rule

This commit is contained in:
JJGadgets
2024-05-19 00:41:15 +08:00
parent 60f4ca99be
commit 5882897f55
2 changed files with 10 additions and 33 deletions

View File

@@ -1,23 +0,0 @@
---
apiVersion: cilium.io/v2
kind: CiliumLocalRedirectPolicy
metadata:
name: &app immich-ml
namespace: &ns immich
spec:
redirectFrontend:
serviceMatcher:
serviceName: *app
namespace: *ns
redirectBackend:
localEndpointSelector:
matchLabels:
app.kubernetes.io/name: immich
app.kubernetes.io/instance: immich
app.kubernetes.io/component: ml
toPorts:
- port: "3003"
protocol: TCP
- port: "3003"
protocol: UDP

View File

@@ -54,7 +54,7 @@ spec:
tunnel: "${SECRET_CLOUDFLARE_TUNNEL_ID}"
credentials-file: /etc/cloudflared/credentials.json
no-autoupdate: true
ingress:
- hostname: "cftest.${DNS_SHORT}"
service: hello_world
@@ -62,40 +62,40 @@ spec:
- hostname: "*"
path: "^/metrics"
service: http://default-backend.ingress.svc.cluster.local:80
- hostname: "${APP_DNS_FLUX_WEBHOOK}"
service: "http://webhook-receiver.flux-system.svc.cluster.local:80"
- hostname: "social.jjgadgets.tech"
service: https://gotosocial.gotosocial.svc.cluster.local.:8080
originRequest:
originServerName: "social.jjgadgets.tech"
- hostname: "${APP_DNS_HEADSCALE}"
service: https://headscale.headscale.svc.cluster.local.:8080
originRequest:
originServerName: "${APP_DNS_HEADSCALE}"
- hostname: "*.${DNS_SHORT}"
service: https://nginx-external-controller.ingress.svc.cluster.local:443
originRequest:
originServerName: "ingress.${DNS_SHORT}"
- hostname: "${DNS_SHORT}"
service: https://nginx-public-controller.ingress.svc.cluster.local:443
originRequest:
originServerName: "${DNS_SHORT}"
- hostname: "${APP_DNS_AUTHENTIK}"
service: https://nginx-public-controller.ingress.svc.cluster.local:443
service: https://nginx-external-controller.ingress.svc.cluster.local:443
originRequest:
originServerName: "${APP_DNS_AUTHENTIK}"
- hostname: "*.${DNS_MAIN}"
service: https://nginx-public-controller.ingress.svc.cluster.local:443
originRequest:
originServerName: "ingress.${DNS_MAIN}"
- service: http://default-backend.ingress.svc.cluster.local:80
---
apiVersion: v1