prep: storage directly to storage-limbosolution-scom using seaweedfs csi-driver
This commit is contained in:
33
README.md
33
README.md
@@ -4,6 +4,11 @@ Welcome to public repository of [https://cloud.limbosolutions.com](https://cloud
|
||||
|
||||
Using [NextCloud](https://nextcloud.com/)
|
||||
|
||||
- [command](#command)
|
||||
- [maintenance mode](#maintenance-mode)
|
||||
- [scan files](#scan-files)
|
||||
- [repair tree](#repair-tree)
|
||||
- [delete file locks](#delete-file-locks)
|
||||
- [Setup](#setup)
|
||||
- [kubernetes Namespace](#kubernetes-namespace)
|
||||
- [Add helm chart](#add-helm-chart)
|
||||
@@ -11,6 +16,34 @@ Using [NextCloud](https://nextcloud.com/)
|
||||
- [Install / Update](#install--update)
|
||||
- [backups](#backups)
|
||||
|
||||
## command
|
||||
|
||||
## maintenance mode
|
||||
|
||||
``` bash
|
||||
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --on;"
|
||||
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --off"
|
||||
```
|
||||
|
||||
### scan files
|
||||
|
||||
``` bash
|
||||
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ files:scan --all"
|
||||
```
|
||||
|
||||
### repair tree
|
||||
|
||||
``` bash
|
||||
su -s /bin/bash www-data -c "php occ files:repair-tree"
|
||||
```
|
||||
|
||||
### delete file locks
|
||||
|
||||
``` bash
|
||||
# execute on mariadb
|
||||
DELETE FROM oc_file_locks WHERE 1;
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
### kubernetes Namespace
|
||||
|
||||
@@ -54,6 +54,15 @@ persistence:
|
||||
# memory: 128Mi
|
||||
|
||||
nextcloud:
|
||||
extraVolumes:
|
||||
- name: mf-documents
|
||||
persistentVolumeClaim:
|
||||
claimName: mf-documents-storage-limbosolutions-com
|
||||
|
||||
extraVolumeMounts:
|
||||
- name: mf-documents
|
||||
mountPath: /mf.documents
|
||||
|
||||
configs:
|
||||
https.config.php: |-
|
||||
<?php
|
||||
|
||||
15
persistance-volumes.yaml
Normal file
15
persistance-volumes.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mf-documents-storage-limbosolutions-com
|
||||
namespace: cloud-limbosolutions-com
|
||||
spec:
|
||||
storageClassName: ""
|
||||
volumeName: mf-documents-storage-limbosolutions-com
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 64Gi
|
||||
Reference in New Issue
Block a user