dev.aggtaa.com, /, /api, /m to 10.0.64.157

This commit is contained in:
azykov@mail.ru
2026-09-29 12:50:05 +03:00
parent 8494263a3f
commit 954a0b4000
7 changed files with 131 additions and 1 deletions
+61
View File
@@ -0,0 +1,61 @@
# Two Ingresses on one host because the auth middleware is per-Ingress:
# "/" goes through Authelia, "/api" and "/m" are public. Traefik picks the
# longer path prefix first, so /api and /m never hit the auth router.
# Both need the tls section (otherwise the router is http-only), but only
# the first carries the cert-manager annotation so a single Certificate
# owns the dev-tls secret.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dev
namespace: dev
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.middlewares: auth-authelia@kubernetescrd
spec:
ingressClassName: traefik
rules:
- host: dev.aggtaa.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dev
port:
name: ui
tls:
- secretName: dev-tls
hosts:
- dev.aggtaa.com
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dev-public
namespace: dev
spec:
ingressClassName: traefik
rules:
- host: dev.aggtaa.com
http:
paths:
- path: /api
pathType: Prefix
backend:
service:
name: dev
port:
name: api
- path: /m
pathType: Prefix
backend:
service:
name: dev
port:
name: m
tls:
- secretName: dev-tls
hosts:
- dev.aggtaa.com