From 97001813be85449056d205ccd27c94d6866e6a6b Mon Sep 17 00:00:00 2001 From: AB-UK Date: Tue, 23 Dec 2025 01:33:33 +0000 Subject: [PATCH] Added xandikos calendar --- k8s/apps/xandikos/ingress.yaml | 7 ++++ k8s/apps/xandikos/kustomization.yaml | 2 + k8s/apps/xandikos/mmdl-deployment.yaml | 58 ++++++++++++++++++++++++++ k8s/apps/xandikos/mmdl-service.yaml | 14 +++++++ 4 files changed, 81 insertions(+) create mode 100644 k8s/apps/xandikos/mmdl-deployment.yaml create mode 100644 k8s/apps/xandikos/mmdl-service.yaml diff --git a/k8s/apps/xandikos/ingress.yaml b/k8s/apps/xandikos/ingress.yaml index 4d4a568..c6dbcb1 100644 --- a/k8s/apps/xandikos/ingress.yaml +++ b/k8s/apps/xandikos/ingress.yaml @@ -13,6 +13,13 @@ spec: - host: cal.hexor.cy http: paths: + - path: / + pathType: Prefix + backend: + service: + name: mmdl + port: + number: 3000 - path: /dav pathType: Prefix backend: diff --git a/k8s/apps/xandikos/kustomization.yaml b/k8s/apps/xandikos/kustomization.yaml index 75f97c1..5fec373 100644 --- a/k8s/apps/xandikos/kustomization.yaml +++ b/k8s/apps/xandikos/kustomization.yaml @@ -4,6 +4,8 @@ kind: Kustomization resources: - deployment.yaml - service.yaml + - mmdl-deployment.yaml + - mmdl-service.yaml - ingress.yaml diff --git a/k8s/apps/xandikos/mmdl-deployment.yaml b/k8s/apps/xandikos/mmdl-deployment.yaml new file mode 100644 index 0000000..4841d98 --- /dev/null +++ b/k8s/apps/xandikos/mmdl-deployment.yaml @@ -0,0 +1,58 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mmdl + labels: + app: mmdl +spec: + selector: + matchLabels: + app: mmdl + replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + template: + metadata: + labels: + app: mmdl + spec: + nodeSelector: + kubernetes.io/hostname: master.tail2fe2d.ts.net + containers: + - name: mmdl + image: intriin/mmdl:latest + imagePullPolicy: Always + env: + - name: NEXTAUTH_URL + value: "https://cal.hexor.cy" + - name: CALDAV_SERVER_URL + value: "https://cal.hexor.cy/dav" + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "1000m" + livenessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: / + port: 3000 + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 3 + ports: + - name: http + containerPort: 3000 + protocol: TCP diff --git a/k8s/apps/xandikos/mmdl-service.yaml b/k8s/apps/xandikos/mmdl-service.yaml new file mode 100644 index 0000000..aae8e7c --- /dev/null +++ b/k8s/apps/xandikos/mmdl-service.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: mmdl +spec: + selector: + app: mmdl + type: ClusterIP + ports: + - name: http + port: 3000 + protocol: TCP + targetPort: 3000