40 lines
964 B
YAML
40 lines
964 B
YAML
---
|
|
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: {} |