161 lines
3.7 KiB
YAML
161 lines
3.7 KiB
YAML
# Default values for Bitwarden.
|
|
|
|
image:
|
|
repository: nextcloud
|
|
pullPolicy: IfNotPresent
|
|
tag: 21.0.2
|
|
|
|
strategy:
|
|
type: Recreate
|
|
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 80
|
|
|
|
env:
|
|
NEXTCLOUD_ADMIN_USER: "admin"
|
|
NEXTCLOUD_ADMIN_PASSWORD: "adminpass"
|
|
TRUSTED_PROXIES: "172.16.0.0/16"
|
|
|
|
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
|
|
key: host
|
|
REDIS_HOST:
|
|
secretKeyRef:
|
|
name: rediscreds
|
|
key: masterhost
|
|
REDIS_HOST_PASSWORD:
|
|
secretKeyRef:
|
|
name: rediscreds
|
|
key: redis-password
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: "/var/www"
|
|
type: emptyDir
|
|
|
|
db:
|
|
noMount: true
|
|
forceName: "db"
|
|
enabled: true
|
|
type: emptyDir
|
|
|
|
redismaster:
|
|
noMount: true
|
|
forceName: "redismaster"
|
|
enabled: true
|
|
type: emptyDir
|
|
|
|
initContainers:
|
|
- name: init-postgresdb
|
|
image: postgres:13.1
|
|
command:
|
|
- "sh"
|
|
- "-c"
|
|
- "until pg_isready -h ${pghost} ; do sleep 2 ; done"
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: pghost
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: dbcreds
|
|
key: plainhost
|
|
|
|
podSecurityContext:
|
|
fsGroup: 33
|
|
|
|
# -- Probe configuration
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
# @default -- See below
|
|
probes:
|
|
# -- Liveness probe configuration
|
|
# @default -- See below
|
|
liveness:
|
|
# -- sets the probe type when not using a custom probe
|
|
# @default -- "TCP"
|
|
type: HTTP
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
# @default -- "/"
|
|
path: /status.php
|
|
|
|
# -- Redainess probe configuration
|
|
# @default -- See below
|
|
readiness:
|
|
# -- sets the probe type when not using a custom probe
|
|
# @default -- "TCP"
|
|
type: HTTP
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
# @default -- "/"
|
|
path: /status.php
|
|
|
|
# -- Startup probe configuration
|
|
# @default -- See below
|
|
startup:
|
|
# -- sets the probe type when not using a custom probe
|
|
# @default -- "TCP"
|
|
type: HTTP
|
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
|
# @default -- "/"
|
|
path: /status.php
|
|
|
|
## 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
|
|
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
|
|
postgresql:
|
|
volumePermissions:
|
|
enabled: true
|
|
enabled: true
|
|
postgresqlUsername: nextcloud
|
|
postgresqlDatabase: nextcloud
|
|
existingSecret: dbcreds
|
|
persistence:
|
|
enabled: false
|
|
existingClaim: db
|
|
|
|
# Enabled redis
|
|
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/redis
|
|
redis:
|
|
volumePermissions:
|
|
enabled: true
|
|
architecture: standalone
|
|
enabled: true
|
|
auth:
|
|
existingSecret: rediscreds
|
|
existingSecretPasswordKey: redis-password
|
|
master:
|
|
persistence:
|
|
enabled: false
|
|
existingClaim: redismaster
|
|
replica:
|
|
replicaCount: 0
|
|
persistence:
|
|
enabled: false
|