| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- ## Official nextcloud image version
- ## ref: https://hub.docker.com/r/library/nextcloud/tags/
- ##
- image:
- repository: nextcloud
- tag: 19.0.3-apache
- pullPolicy: IfNotPresent
- # pullSecrets:
- # - myRegistrKeySecretName
- ## Allowing use of ingress controllers
- ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
- ##
- # Allow configuration of lifecycle hooks
- # ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
- lifecycle: {}
- # postStartCommand: []
- # preStopCommand: []
- nextcloud:
- host: nextcloud.kube.home
- username: admin
- password: changeme
- update: 0
- datadir: /var/www/html/data
- tableprefix:
- persistence:
- subPath:
- mail:
- enabled: false
- fromAddress: user
- domain: domain.com
- smtp:
- host: domain.com
- secure: ssl
- port: 465
- authtype: LOGIN
- name: user
- password: pass
- # PHP Configuration files
- # Will be injected in /usr/local/etc/php/conf.d
- phpConfigs: {}
- # Default config files
- # IMPORTANT: Will be used only if you put extra configs, otherwise default will come from nextcloud itself
- # Default confgurations can be found here: https://github.com/nextcloud/docker/tree/master/16.0/apache/config
- defaultConfigs:
- # To protect /var/www/html/config
- .htaccess: true
- # Redis default configuration
- redis.config.php: true
- # Apache configuration for rewrite urls
- apache-pretty-urls.config.php: true
- # Define APCu as local cache
- apcu.config.php: true
- # Apps directory configs
- apps.config.php: true
- # Used for auto configure database
- autoconfig.php: true
- # SMTP default configuration
- smtp.config.php: true
- # Extra config files created in /var/www/html/config/
- # ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
- configs: {}
- # For example, to use S3 as primary storage
- # ref: https://docs.nextcloud.com/server/13/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3
- #
- # configs:
- # s3.config.php: |-
- # <?php
- # $CONFIG = array (
- # 'objectstore' => array(
- # 'class' => '\\OC\\Files\\ObjectStore\\S3',
- # 'arguments' => array(
- # 'bucket' => 'my-bucket',
- # 'autocreate' => true,
- # 'key' => 'xxx',
- # 'secret' => 'xxx',
- # 'region' => 'us-east-1',
- # 'use_ssl' => true
- # )
- # )
- # );
- ## Strategy used to replace old pods
- ## IMPORTANT: use with care, it is suggested to leave as that for upgrade purposes
- ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
- strategy: "Recreate"
- # type: RollingUpdate
- # rollingUpdate:
- # maxSurge: 1
- # maxUnavailable: 0
- ##
- ## Extra environment variables
- extraEnv:
- # - name: SOME_SECRET_ENV
- # valueFrom:
- # secretKeyRef:
- # name: nextcloud
- # key: secret_key
- # Extra mounts for the pods. Example shown is for connecting a legacy NFS volume
- # to NextCloud pods in Kubernetes. This can then be configured in External Storage
- extraVolumes:
- # - name: nfs
- # nfs:
- # server: "10.0.0.1"
- # path: "/nextcloud_data"
- # readOnly: false
- extraVolumeMounts:
- # - name: nfs
- # mountPath: "/legacy_data"
- internalDatabase:
- enabled: false
- name: nextcloud
- ##
- ## External database configuration
- ##
- externalDatabase:
- enabled: true
- ## Supported database engines: mysql or postgresql
- type: postgresql
- ## Database host
- host:
- ## Database user
- user: nextcloud
- ## Database password
- password:
- ## Database name
- database: nextcloud
- ## Use a existing secret
- existingSecret:
- enabled: false
- # secretName: nameofsecret
- # usernameKey: username
- # passwordKey: password
- postgresql:
- host:
- ## Cronjob to execute Nextcloud background tasks
- ## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
- ##
- cronjob:
- enabled: false
- # Nexcloud image is used as default but only curl is needed
- image: {}
- # repository: nextcloud
- # tag: 16.0.3-apache
- # pullPolicy: IfNotPresent
- # pullSecrets:
- # - myRegistrKeySecretName
- # 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: {}
- # Set curl's insecure option if you use e.g. self-signed certificates
- curlInsecure: false
- failedJobsHistoryLimit: 5
- successfulJobsHistoryLimit: 2
- # If not set, nextcloud deployment one will be set
- # resources:
- # We usually recommend not to specify default resources and to leave this as a conscious
- # choice for the user. This also increases chances charts run on environments with little
- # resources, such as Minikube. If you do want to specify resources, uncomment the following
- # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
- # limits:
- # cpu: 100m
- # memory: 128Mi
- # requests:
- # cpu: 100m
- # memory: 128Mi
- # If not set, nextcloud deployment one will be set
- # nodeSelector: {}
- # If not set, nextcloud deployment one will be set
- # tolerations: []
- # If not set, nextcloud deployment one will be set
- # affinity: {}
- service:
- nodePort: 9000
- ## Liveness and readiness probe values
- ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
- ##
- livenessProbe:
- enabled: true
- initialDelaySeconds: 30
- periodSeconds: 15
- timeoutSeconds: 5
- failureThreshold: 3
- successThreshold: 1
- readinessProbe:
- enabled: true
- initialDelaySeconds: 30
- periodSeconds: 15
- timeoutSeconds: 5
- failureThreshold: 3
- successThreshold: 1
|