nextcloud

by joaquinito2051

Helm chartv1.13.0App 17.0.0

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.

ParameterDescriptionDefault
image.repositorynextcloud Image namenextcloud
image.tagnextcloud Image tag{VERSION}
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify image pull secretsnil
image.commandSpecify command to be run in the containerDocker image's ENTRYPOINT
image.argsSpecify args for the above command for the containerDocker image's COMMAND
ingress.enabledEnable use of ingress controllersfalse
ingress.servicePortIngress' backend servicePorthttp
ingress.annotationsAn array of service annotationsnil
ingress.labelsAn array of service labelsnil
ingress.tlsIngress TLS configuration[]
ingress.hostsIngress hosts configuration[]
nextcloud.hostnextcloud host to create application URLsnextcloud.kube.home
nextcloud.usernameUser of the applicationadmin
nextcloud.passwordApplication passwordchangeme
nextcloud.updateTrigger update if custom command is used0
nextcloud.datadirnextcloud data dir location/var/www/html/data
nextcloud.tableprefixnextcloud db table prefix''
nextcloud.mail.enabledWhether to enable/disable email settingsfalse
nextcloud.mail.fromAddressnextcloud mail send from fieldnil
nextcloud.mail.domainnextcloud mail domainnil
nextcloud.mail.smtp.hostSMTP hostnamenil
nextcloud.mail.smtp.secureSMTP connection ssl or empty''
nextcloud.mail.smtp.portOptional SMTP portnil
nextcloud.mail.smtp.authtypeSMTP authentication methodLOGIN
nextcloud.mail.smtp.nameSMTP username''
nextcloud.mail.smtp.passwordSMTP password''
nextcloud.configsConfig files created in /var/www/html/config{}
nextcloud.persistence.subPathSet the subPath for nextcloud to use in volumenil
nextcloud.phpConfigsPHP Config files created in /usr/local/etc/php/conf.d{}
nextcloud.defaultConfigs.\.htaccessDefault .htaccess to protect /var/www/html/configtrue
nextcloud.defaultConfigs.\.redis\.config\.phpDefault Redis configurationtrue
nextcloud.defaultConfigs.\.apache-pretty-urls\.config\.phpDefault Apache configuration for rewrite urlstrue
nextcloud.defaultConfigs.\.apcu\.config\.phpDefault configuration to define APCu as local cachetrue
nextcloud.defaultConfigs.\.apps\.config\.phpDefault configuration for appstrue
nextcloud.defaultConfigs.\.autoconfig\.phpDefault auto-configuration for databasestrue
nextcloud.defaultConfigs.\.smtp\.config\.phpDefault configuration for smtptrue
nextcloud.strategyspecifies the strategy used to replace old Pods by new onestype: Recreate
nextcloud.extraEnvspecify additional environment variables{}
nextcloud.extraVolumesspecify additional volumes for the NextCloud pod{}
nextcloud.extraVolumeMountsspecify additional volume mounts for the NextCloud pod{}
nginx.enabledEnable nginx (requires you use php-fpm image)false
nginx.image.repositorynginx Image namenginx
nginx.image.tagnginx Image tagalpine
nginx.image.pullPolicynginx Image pull policyIfNotPresent
nginx.config.defaultWhether to use nextclouds recommended nginx configtrue
nginx.config.customSpecify a custom config for nginx{}
nginx.resourcesnginx resources{}
lifecycle.postStartCommandSpecify deployment lifecycle hook postStartCommandnil
lifecycle.preStopCommandSpecify deployment lifecycle hook preStopCommandnil
internalDatabase.enabledWhether to use internal sqlite databasetrue
internalDatabase.databaseName of the existing databasenextcloud
externalDatabase.enabledWhether to use external databasefalse
externalDatabase.typeExternal database type: mysql, postgresqlmysql
externalDatabase.hostHost of the external databasenil
externalDatabase.databaseName of the existing databasenextcloud
externalDatabase.userExisting username in the external dbnextcloud
externalDatabase.passwordPassword for the above usernamenil
externalDatabase.existingSecret.enabledWhether to use a existing secret or notfalse
externalDatabase.existingSecret.secretNameName of the existing secretnil
externalDatabase.existingSecret.usernameKeyName of the key that contains the usernamenil
externalDatabase.existingSecret.passwordKeyName of the key that contains the passwordnil
mariadb.enabledWhether to use the MariaDB chartfalse
mariadb.db.nameDatabase name to createnextcloud

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnextcloud is pinned at v1.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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