nextcloud
A file sharing server that puts the control and security of your own data back into your hands.
About this chart
nextcloud
nextcloud is a file sharing server that puts the control and security of your own data back into your hands.
TL;DR;
$ helm install stable/nextcloud
Introduction
This chart bootstraps an nextcloud deployment on a Kubernetes cluster using the Helm package manager.
It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the nextcloud application.
Prerequisites
- Kubernetes 1.9+ with Beta APIs enabled
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release stable/nextcloud
The command deploys nextcloud on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the nextcloud chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | nextcloud Image name | nextcloud |
image.tag | nextcloud Image tag | {VERSION} |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Specify image pull secrets | nil |
image.command | Specify command to be run in the container | Docker image's ENTRYPOINT |
image.args | Specify args for the above command for the container | Docker image's COMMAND |
ingress.enabled | Enable use of ingress controllers | false |
ingress.servicePort | Ingress' backend servicePort | http |
ingress.annotations | An array of service annotations | nil |
ingress.labels | An array of service labels | nil |
ingress.tls | Ingress TLS configuration | [] |
ingress.hosts | Ingress hosts configuration | [] |
nextcloud.host | nextcloud host to create application URLs | nextcloud.kube.home |
nextcloud.username | User of the application | admin |
nextcloud.password | Application password | changeme |
nextcloud.update | Trigger update if custom command is used | 0 |
nextcloud.datadir | nextcloud data dir location | /var/www/html/data |
nextcloud.tableprefix | nextcloud db table prefix | '' |
nextcloud.mail.enabled | Whether to enable/disable email settings | false |
nextcloud.mail.fromAddress | nextcloud mail send from field | nil |
nextcloud.mail.domain | nextcloud mail domain | nil |
nextcloud.mail.smtp.host | SMTP hostname | nil |
nextcloud.mail.smtp.secure | SMTP connection ssl or empty | '' |
nextcloud.mail.smtp.port | Optional SMTP port | nil |
nextcloud.mail.smtp.authtype | SMTP authentication method | LOGIN |
nextcloud.mail.smtp.name | SMTP username | '' |
nextcloud.mail.smtp.password | SMTP password | '' |
nextcloud.configs | Config files created in /var/www/html/config | {} |
nextcloud.persistence.subPath | Set the subPath for nextcloud to use in volume | nil |
nextcloud.phpConfigs | PHP Config files created in /usr/local/etc/php/conf.d | {} |
nextcloud.defaultConfigs.\.htaccess | Default .htaccess to protect /var/www/html/config | true |
nextcloud.defaultConfigs.\.redis\.config\.php | Default Redis configuration | true |
nextcloud.defaultConfigs.\.apache-pretty-urls\.config\.php | Default Apache configuration for rewrite urls | true |
nextcloud.defaultConfigs.\.apcu\.config\.php | Default configuration to define APCu as local cache | true |
nextcloud.defaultConfigs.\.apps\.config\.php | Default configuration for apps | true |
nextcloud.defaultConfigs.\.autoconfig\.php | Default auto-configuration for databases | true |
nextcloud.defaultConfigs.\.smtp\.config\.php | Default configuration for smtp | true |
nextcloud.strategy | specifies the strategy used to replace old Pods by new ones | type: Recreate |
nextcloud.extraEnv | specify additional environment variables | {} |
nextcloud.extraVolumes | specify additional volumes for the NextCloud pod | {} |
nextcloud.extraVolumeMounts | specify additional volume mounts for the NextCloud pod | {} |
nginx.enabled | Enable nginx (requires you use php-fpm image) | false |
nginx.image.repository | nginx Image name | nginx |
nginx.image.tag | nginx Image tag | alpine |
nginx.image.pullPolicy | nginx Image pull policy | IfNotPresent |
nginx.config.default | Whether to use nextclouds recommended nginx config | true |
nginx.config.custom | Specify a custom config for nginx | {} |
nginx.resources | nginx resources | {} |
lifecycle.postStartCommand | Specify deployment lifecycle hook postStartCommand | nil |
lifecycle.preStopCommand | Specify deployment lifecycle hook preStopCommand | nil |
internalDatabase.enabled | Whether to use internal sqlite database | true |
internalDatabase.database | Name of the existing database | nextcloud |
externalDatabase.enabled | Whether to use external database | false |
externalDatabase.type | External database type: mysql, postgresql | mysql |
externalDatabase.host | Host of the external database | nil |
externalDatabase.database | Name of the existing database | nextcloud |
externalDatabase.user | Existing username in the external db | nextcloud |
externalDatabase.password | Password for the above username | nil |
externalDatabase.existingSecret.enabled | Whether to use a existing secret or not | false |
externalDatabase.existingSecret.secretName | Name of the existing secret | nil |
externalDatabase.existingSecret.usernameKey | Name of the key that contains the username | nil |
externalDatabase.existingSecret.passwordKey | Name of the key that contains the password | nil |
mariadb.enabled | Whether to use the MariaDB chart | false |
mariadb.db.name | Database name to create | nextcloud |
Deploy nextcloud with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nextcloud on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnextcloud is pinned at v1.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply