whiteboard added
This commit is contained in:
8
whiteboard/cm.yaml
Normal file
8
whiteboard/cm.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: whiteboard-config
|
||||
namespace: nextcloud
|
||||
data:
|
||||
NEXTCLOUD_URL: "https://cloud.borninpain.de"
|
||||
7
whiteboard/kustomization.yaml
Normal file
7
whiteboard/kustomization.yaml
Normal 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
40
whiteboard/ss.yaml
Normal 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
15
whiteboard/svc.yaml
Normal 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
|
||||
Reference in New Issue
Block a user