This commit is contained in:
3
deploy/app/whiteboard/.env.d/.gitignore
vendored
Normal file
3
deploy/app/whiteboard/.env.d/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
**
|
||||
!*.example
|
||||
!.gitignore
|
||||
1
deploy/app/whiteboard/.env.d/whiteboard.env.example
Normal file
1
deploy/app/whiteboard/.env.d/whiteboard.env.example
Normal file
@@ -0,0 +1 @@
|
||||
JWT_SECRET_KEY= ????
|
||||
37
deploy/app/whiteboard/deployment.yaml
Normal file
37
deploy/app/whiteboard/deployment.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nextcloud-whiteboard
|
||||
labels:
|
||||
app: nextcloud-whiteboard
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-whiteboard
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nextcloud-whiteboard
|
||||
spec:
|
||||
containers:
|
||||
- name: whiteboard-ws
|
||||
image: ghcr.io/nextcloud-releases/whiteboard:stable
|
||||
ports:
|
||||
- containerPort: 3002
|
||||
env:
|
||||
- name: NEXTCLOUD_URL
|
||||
value: https://cloud.limbosolutions.com
|
||||
- name: JWT_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-whiteboard
|
||||
key: JWT_SECRET_KEY
|
||||
resources:
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
|
||||
14
deploy/app/whiteboard/kustomization.yaml
Normal file
14
deploy/app/whiteboard/kustomization.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
secretGenerator:
|
||||
- name: nextcloud-whiteboard
|
||||
envs:
|
||||
- ./.env.d/whiteboard.env
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
12
deploy/app/whiteboard/service.yaml
Normal file
12
deploy/app/whiteboard/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nextcloud-whiteboard
|
||||
spec:
|
||||
selector:
|
||||
app: nextcloud-whiteboard
|
||||
ports:
|
||||
- name: ws
|
||||
port: 3002
|
||||
targetPort: 3002
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user