2021-07-02 18:32:29 +00:00
|
|
|
# Default values for Bitwarden.
|
|
|
|
|
|
|
|
image:
|
2021-09-11 11:52:00 +00:00
|
|
|
repository: docker.io/nextcloud
|
2021-07-02 18:32:29 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2021-11-30 13:45:07 +00:00
|
|
|
tag: 22.2.3@sha256:21b94903f9c755a9e79a84692ce9ea7d4ebfc2d1066f90f7f2baa13388ddf831
|
2021-07-02 18:32:29 +00:00
|
|
|
|
2021-09-26 18:05:21 +00:00
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
2021-09-10 18:10:04 +00:00
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
fsGroup: 33
|
|
|
|
|
2021-07-02 18:32:29 +00:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2021-11-28 09:26:31 +00:00
|
|
|
port: 10020
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 80
|
2021-07-04 17:39:33 +00:00
|
|
|
hpb:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
hpb:
|
|
|
|
enabled: true
|
|
|
|
port: 7867
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 7867
|
2021-07-02 18:32:29 +00:00
|
|
|
|
2021-07-03 08:36:08 +00:00
|
|
|
env:
|
|
|
|
NEXTCLOUD_ADMIN_USER: "admin"
|
|
|
|
NEXTCLOUD_ADMIN_PASSWORD: "adminpass"
|
2021-07-03 09:52:03 +00:00
|
|
|
TRUSTED_PROXIES: "172.16.0.0/16"
|
2021-07-02 18:32:29 +00:00
|
|
|
|
|
|
|
envTpl:
|
|
|
|
POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}"
|
|
|
|
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
|
|
|
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: nextcloudconfig
|
|
|
|
|
|
|
|
envValueFrom:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: postgresql-password
|
|
|
|
POSTGRES_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
2021-10-09 23:20:01 +00:00
|
|
|
key: plainporthost
|
2021-07-02 21:59:17 +00:00
|
|
|
REDIS_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: rediscreds
|
2021-11-12 19:59:00 +00:00
|
|
|
key: plainhost
|
2021-07-02 22:03:03 +00:00
|
|
|
REDIS_HOST_PASSWORD:
|
2021-07-02 21:59:17 +00:00
|
|
|
secretKeyRef:
|
|
|
|
name: rediscreds
|
|
|
|
key: redis-password
|
2021-07-02 18:32:29 +00:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2021-07-04 14:46:10 +00:00
|
|
|
mountPath: "/var/www/html"
|
2021-07-02 21:59:17 +00:00
|
|
|
# -- Probe configuration
|
|
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
|
|
# @default -- See below
|
2021-07-02 18:32:29 +00:00
|
|
|
probes:
|
2021-07-02 21:59:17 +00:00
|
|
|
# -- Liveness probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
liveness:
|
2021-07-04 14:46:10 +00:00
|
|
|
custom: true
|
2021-07-02 21:59:17 +00:00
|
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
|
|
# @default -- "/"
|
2021-07-04 14:46:10 +00:00
|
|
|
spec:
|
|
|
|
httpGet:
|
|
|
|
path: /status.php
|
|
|
|
port: 80
|
|
|
|
httpHeaders:
|
|
|
|
- name: Host
|
|
|
|
value: "test.fakedomain.dns"
|
2021-07-02 21:59:17 +00:00
|
|
|
|
|
|
|
# -- Redainess probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
readiness:
|
2021-07-04 14:46:10 +00:00
|
|
|
custom: true
|
2021-07-02 21:59:17 +00:00
|
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
|
|
# @default -- "/"
|
2021-07-04 14:46:10 +00:00
|
|
|
spec:
|
|
|
|
httpGet:
|
|
|
|
path: /status.php
|
|
|
|
port: 80
|
|
|
|
httpHeaders:
|
|
|
|
- name: Host
|
|
|
|
value: "test.fakedomain.dns"
|
2021-07-02 21:59:17 +00:00
|
|
|
|
|
|
|
# -- Startup probe configuration
|
|
|
|
# @default -- See below
|
2021-07-02 18:32:29 +00:00
|
|
|
startup:
|
2021-07-04 14:46:10 +00:00
|
|
|
custom: true
|
2021-07-02 21:59:17 +00:00
|
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
|
|
# @default -- "/"
|
2021-07-04 14:46:10 +00:00
|
|
|
spec:
|
|
|
|
httpGet:
|
|
|
|
path: /status.php
|
|
|
|
port: 80
|
|
|
|
httpHeaders:
|
|
|
|
- name: Host
|
|
|
|
value: "test.fakedomain.dns"
|
|
|
|
|
2021-07-02 18:32:29 +00:00
|
|
|
## Cronjob to execute Nextcloud background tasks
|
|
|
|
## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
|
|
|
|
##
|
|
|
|
cronjob:
|
|
|
|
# Every 5 minutes
|
|
|
|
# Note: Setting this to any any other value than 5 minutes might
|
|
|
|
# cause issues with how nextcloud background jobs are executed
|
|
|
|
schedule: "*/5 * * * *"
|
|
|
|
annotations: {}
|
|
|
|
failedJobsHistoryLimit: 5
|
|
|
|
successfulJobsHistoryLimit: 2
|
|
|
|
|
|
|
|
# Enabled postgres
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
2021-10-09 23:20:01 +00:00
|
|
|
existingSecret: "dbcreds"
|
2021-07-02 18:32:29 +00:00
|
|
|
postgresqlUsername: nextcloud
|
|
|
|
postgresqlDatabase: nextcloud
|
2021-08-12 12:55:05 +00:00
|
|
|
|
2021-07-02 18:32:29 +00:00
|
|
|
# Enabled redis
|
|
|
|
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/redis
|
|
|
|
redis:
|
|
|
|
enabled: true
|
2021-11-12 19:59:00 +00:00
|
|
|
existingSecret: "rediscreds"
|