moved radicale to c.aggtaa.com/server2 and davical to c.aggtaa.com/server

This commit is contained in:
azykov@mail.ru
2026-08-09 20:48:17 +03:00
parent 5a3e7fba5b
commit 5d5231d69e
6 changed files with 24 additions and 10 deletions
@@ -34,7 +34,7 @@ spec:
tag: "82-1.1.12" tag: "82-1.1.12"
env: env:
TZ: Europe/Moscow TZ: Europe/Moscow
HOST_NAME: c2.aggtaa.com HOST_NAME: c.aggtaa.com
DBHOST: davical-postgres DBHOST: davical-postgres
UPDATE_FROM_OLD: "false" UPDATE_FROM_OLD: "false"
PGSQL_ROOT_PASS: PGSQL_ROOT_PASS:
@@ -74,20 +74,24 @@ spec:
ingress: ingress:
app: app:
className: traefik className: traefik
# no cert-manager annotation here: radicale's own Ingress already
# requests/owns the Certificate for c.aggtaa.com -> radicale-tls.
# A second Ingress with the annotation would create a competing
# Certificate for the same host/secret.
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod traefik.ingress.kubernetes.io/router.middlewares: pim-davical-stripprefix@kubernetescrd
hosts: hosts:
- host: c2.aggtaa.com - host: c.aggtaa.com
paths: paths:
- path: / - path: /server
pathType: Prefix pathType: Prefix
service: service:
identifier: app identifier: app
port: http port: http
tls: tls:
- secretName: davical-tls - secretName: radicale-tls
hosts: hosts:
- c2.aggtaa.com - c.aggtaa.com
persistence: persistence:
config: config:
@@ -3,5 +3,6 @@ kind: Kustomization
resources: resources:
- helmrepository.yaml - helmrepository.yaml
- secret.enc.yaml - secret.enc.yaml
- middleware.yaml
- helmrelease-postgres.yaml - helmrelease-postgres.yaml
- helmrelease-davical.yaml - helmrelease-davical.yaml
@@ -0,0 +1,9 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: davical-stripprefix
namespace: pim
spec:
stripPrefix:
prefixes:
- /server
@@ -23,7 +23,7 @@ spec:
AGENDAV_TITLE: "" AGENDAV_TITLE: ""
AGENDAV_FOOTER: "" AGENDAV_FOOTER: ""
AGENDAV_CALDAV_SERVER: "http://radicale.pim.svc.cluster.local:5232/%u" AGENDAV_CALDAV_SERVER: "http://radicale.pim.svc.cluster.local:5232/%u"
AGENDAV_CALDAV_PUBLIC_URL: "https://c.aggtaa.com/server" AGENDAV_CALDAV_PUBLIC_URL: "https://c.aggtaa.com/server2"
AGENDAV_TIMEZONE: "Europe/Moscow" AGENDAV_TIMEZONE: "Europe/Moscow"
AGENDAV_WEEKSTART: "1" AGENDAV_WEEKSTART: "1"
AGENDAV_LANG: "en" AGENDAV_LANG: "en"
@@ -40,7 +40,7 @@ spec:
hosts: hosts:
- host: c.aggtaa.com - host: c.aggtaa.com
paths: paths:
- path: /server - path: /server2
pathType: Prefix pathType: Prefix
service: service:
identifier: app identifier: app
+2 -2
View File
@@ -8,7 +8,7 @@ metadata:
spec: spec:
stripPrefix: stripPrefix:
prefixes: prefixes:
- /server - /server2
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: Middleware kind: Middleware
@@ -18,4 +18,4 @@ metadata:
spec: spec:
headers: headers:
customRequestHeaders: customRequestHeaders:
X-Script-Name: /server X-Script-Name: /server2