whiteboard added

This commit is contained in:
Philip Haupt
2025-11-05 20:42:15 +01:00
parent 1a764dd456
commit a5c7c4a600
4 changed files with 70 additions and 0 deletions

8
whiteboard/cm.yaml Normal file
View File

@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: whiteboard-config
namespace: nextcloud
data:
NEXTCLOUD_URL: "https://cloud.borninpain.de"

View File

@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cm.yaml
- ss.yaml
- svc.yaml

40
whiteboard/ss.yaml Normal file
View File

@@ -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: {}

15
whiteboard/svc.yaml Normal file
View File

@@ -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