From a5c7c4a600ca1a6e32588a9ab5d7d6ecbcb5b5a3 Mon Sep 17 00:00:00 2001 From: Philip Haupt <“der.mad.mob@gmail.com”> Date: Wed, 5 Nov 2025 20:42:15 +0100 Subject: [PATCH] whiteboard added --- whiteboard/cm.yaml | 8 +++++++ whiteboard/kustomization.yaml | 7 ++++++ whiteboard/ss.yaml | 40 +++++++++++++++++++++++++++++++++++ whiteboard/svc.yaml | 15 +++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 whiteboard/cm.yaml create mode 100644 whiteboard/kustomization.yaml create mode 100644 whiteboard/ss.yaml create mode 100644 whiteboard/svc.yaml diff --git a/whiteboard/cm.yaml b/whiteboard/cm.yaml new file mode 100644 index 0000000..c722021 --- /dev/null +++ b/whiteboard/cm.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: whiteboard-config + namespace: nextcloud +data: + NEXTCLOUD_URL: "https://cloud.borninpain.de" \ No newline at end of file diff --git a/whiteboard/kustomization.yaml b/whiteboard/kustomization.yaml new file mode 100644 index 0000000..e84cfcb --- /dev/null +++ b/whiteboard/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - cm.yaml + - ss.yaml + - svc.yaml diff --git a/whiteboard/ss.yaml b/whiteboard/ss.yaml new file mode 100644 index 0000000..16af08a --- /dev/null +++ b/whiteboard/ss.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: whiteboard + namespace: nextcloud +spec: + serviceName: whiteboard + replicas: 1 + selector: + matchLabels: + app: whiteboard + template: + metadata: + labels: + app: whiteboard + spec: + containers: + - name: whiteboard + image: ghcr.io/nextcloud-releases/whiteboard:stable + ports: + - containerPort: 3002 + name: http + env: + - name: NEXTCLOUD_URL + valueFrom: + configMapKeyRef: + name: whiteboard-config + key: NEXTCLOUD_URL + - name: JWT_SECRET_KEY + valueFrom: + secretKeyRef: + name: whiteboard-secret + key: JWT_SECRET_KEY + volumeMounts: + - name: whiteboard-data + mountPath: /data + volumes: + - name: whiteboard-data + emptyDir: {} \ No newline at end of file diff --git a/whiteboard/svc.yaml b/whiteboard/svc.yaml new file mode 100644 index 0000000..84c8873 --- /dev/null +++ b/whiteboard/svc.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: whiteboard + namespace: nextcloud +spec: + type: ClusterIP + ports: + - port: 3002 + targetPort: 3002 + protocol: TCP + name: http + selector: + app: whiteboard \ No newline at end of file