This commit is contained in:
@@ -15,6 +15,7 @@ resources:
|
||||
- ./mariadb-deploy.yaml
|
||||
- ./backups/backup-pbs-cronjob.yaml
|
||||
- ./onlyoffice
|
||||
- ./whiteboard
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
@@ -6,6 +6,9 @@ image:
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
|
||||
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
@@ -77,6 +80,8 @@ resources:
|
||||
cpu: "0.5"
|
||||
memory: 512Mi
|
||||
|
||||
redis:
|
||||
enabled: false
|
||||
|
||||
## Cronjob to execute Nextcloud background tasks
|
||||
## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#cron
|
||||
@@ -85,6 +90,15 @@ cronjob:
|
||||
enabled: true
|
||||
|
||||
nextcloud:
|
||||
extraEnv:
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-redis
|
||||
key: redis-password
|
||||
|
||||
defaultConfigs:
|
||||
redis.config.php: false
|
||||
|
||||
extraInitContainers:
|
||||
- name: data-folder-structure-fix
|
||||
@@ -133,9 +147,8 @@ nextcloud:
|
||||
|
||||
phpConfigs:
|
||||
php.ini: |-
|
||||
memory_limit = 512M
|
||||
memory_limit = 1024M
|
||||
extraVolumes:
|
||||
|
||||
- name: mf-documents
|
||||
persistentVolumeClaim:
|
||||
claimName: mf-documents-limbosolutions-com
|
||||
@@ -191,6 +204,7 @@ nextcloud:
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'allow_local_remote_servers' => true,
|
||||
'loglevel' => 1
|
||||
);
|
||||
phone.config.php: |-
|
||||
<?php
|
||||
@@ -220,6 +234,22 @@ nextcloud:
|
||||
'maintenance_window_start' => 1,
|
||||
);
|
||||
|
||||
redis.config.php: |-
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'memcache.local' => '\OC\Memcache\APCu',
|
||||
'memcache.distributed' => '\OC\Memcache\Redis',
|
||||
'memcache.locking' => '\OC\Memcache\Redis',
|
||||
|
||||
'redis' => array(
|
||||
'host' => 'nextcloud-redis-master',
|
||||
'port' => 6379,
|
||||
'timeout' => 1.5,
|
||||
'password' => getenv('REDIS_PASSWORD'),
|
||||
'dbindex' => 0,
|
||||
),
|
||||
);
|
||||
|
||||
onlyoffice.config.php: |-
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
12
deploy/app/redis-helm-values.yaml
Normal file
12
deploy/app/redis-helm-values.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
architecture: standalone
|
||||
|
||||
auth:
|
||||
enabled: true
|
||||
|
||||
|
||||
master:
|
||||
persistence:
|
||||
enabled: false
|
||||
|
||||
replica:
|
||||
replicaCount: 0
|
||||
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