SQLite caused 4.7 CPU / 2GB usage, now MySQL uses ~95m / 95Mi. Reduced limits from 16 CPU / 6Gi to 2 CPU / 1Gi. Reduced requests from 100m / 1Gi to 50m / 256Mi. Frees ~14 CPU cores and 5Gi memory for other workloads.
105 lines
2.1 KiB
YAML
105 lines
2.1 KiB
YAML
nextcloud:
|
|
host: nextcloud.viktorbarzin.me
|
|
trustedDomains:
|
|
- nextcloud.viktorbarzin.me
|
|
# mail:
|
|
# enabled: true
|
|
# # the user we send email as
|
|
# fromAddress: nextcloud@viktorbarzin.me
|
|
# # the domain we send email from
|
|
# domain: viktorbarzin.me
|
|
# smtp:
|
|
# host: mail.viktorbarzin.me
|
|
# secure: starttls
|
|
# port: 587
|
|
# authtype: LOGIN
|
|
# name: nextcloud@viktorbarzin.me
|
|
# password:
|
|
extraEnv:
|
|
- name: TRUSTED_PROXIES
|
|
value: "10.0.0.0/8"
|
|
- name: PHP_MEMORY_LIMIT
|
|
value: "512M"
|
|
- name: PHP_UPLOAD_LIMIT
|
|
value: "16G"
|
|
# - name: mail_smtpdebug
|
|
# value: "true"
|
|
# - name: loglevel
|
|
# value: "0"
|
|
phpConfigs:
|
|
zzz-custom.ini: |
|
|
max_execution_time = 300
|
|
max_input_time = 300
|
|
default_socket_timeout = 300
|
|
extraVolumes:
|
|
- name: apache-tuning
|
|
configMap:
|
|
name: nextcloud-apache-tuning
|
|
extraVolumeMounts:
|
|
- name: apache-tuning
|
|
mountPath: /etc/apache2/mods-available/mpm_prefork.conf
|
|
subPath: mpm_prefork.conf
|
|
|
|
internalDatabase:
|
|
enabled: false
|
|
|
|
externalRedis:
|
|
enabled: true
|
|
host: ${redis_host}
|
|
|
|
externalDatabase:
|
|
enabled: true
|
|
type: mysql
|
|
host: ${mysql_host}
|
|
user: nextcloud
|
|
password: ${db_password}
|
|
database: nextcloud
|
|
|
|
persistence:
|
|
enabled: true
|
|
existingClaim: nextcloud-data-iscsi
|
|
|
|
accessMode: ReadWriteOnce
|
|
size: 20Gi
|
|
|
|
startupProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 30
|
|
failureThreshold: 60
|
|
successThreshold: 1
|
|
|
|
livenessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 60
|
|
timeoutSeconds: 30
|
|
failureThreshold: 10
|
|
successThreshold: 1
|
|
|
|
readinessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 60
|
|
timeoutSeconds: 30
|
|
failureThreshold: 5
|
|
successThreshold: 1
|
|
|
|
podAnnotations:
|
|
diun.enable: "true"
|
|
diun.include_tags: "^[0-9]+(?:.[0-9]+)?(?:.[0-9]+)?.*"
|
|
|
|
collabora:
|
|
enabled: false # Using onlyoffice instead
|
|
|
|
resources:
|
|
limits:
|
|
cpu: "2"
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 256Mi
|
|
|
|
cronjob:
|
|
enabled: true
|