owncloud

by [riftbit]

Helm chartv10.2.24App 10.8.0Verified publisher

A file sharing server that puts the control and security of your own data back into your hands.

About this chart

ownCloud

ownCloud is a file sharing server that puts the control and security of your own data back into your hands.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/owncloud

Introduction

This chart bootstraps an ownCloud 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 ownCloud application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release bitnami/owncloud

The command deploys ownCloud on the Kubernetes cluster in the default configuration. The Parameters 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.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override owncloud.fullname template (will maintain the release name)""
fullnameOverrideString to fully override owncloud.fullname template""
extraDeployArray of extra objects to deploy with the release (evaluated as a template)[]

ownCloud parameters

NameDescriptionValue
image.registryownCloud image registrydocker.io
image.repositoryownCloud image repositorybitnami/owncloud
image.tagownCloud Image tag (immutable tags are recommended)10.8.0-debian-10-r36
image.pullPolicyownCloud image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
hostAliasesDeployment pod host aliases[]
replicaCountNumber of replicas (requires ReadWriteMany PVC support)1
owncloudSkipInstallSkip ownCloud installation wizard. Useful for migrations and restoring from SQL dumpfalse
owncloudHostownCloud host to create application URLs (when ingress, it will be ignored)""
owncloudUsernameUser of the applicationuser
owncloudPasswordApplication password""
owncloudEmailAdmin email[email protected]
allowEmptyPasswordAllow DB blank passwordsfalse
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
commonAnnotationsCommon annotations to add to all ownCloud resources (sub-charts are not considered). Evaluated as a template{}
commonLabelsCommon labels to add to all ownCloud resources (sub-charts are not considered). Evaluated as a template{}
updateStrategy.typeUpdate strategy - only really applicable for deployments with RWO PVs attachedRollingUpdate
extraEnvVarsAn array to add extra env vars[]
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables""
extraVolumesExtra volumes to add to the deployment. Requires setting extraVolumeMounts[]
extraVolumeMountsExtra volume mounts to add to the container. Normally used with extraVolumes[]
initContainersExtra init containers to add to the deployment[]
sidecarsExtra sidecar containers to add to the deployment[]
tolerationsTolerations for pod assignment[]
existingSecretName of a secret with the application password""
smtpHostSMTP host""
smtpPortSMTP port""
smtpUserSMTP user""
smtpPasswordSMTP password""
smtpProtocolSMTP Protocol (options: ssl,tls, nil)""
containerPorts.httpSets HTTP port inside NGINX container8080
containerPorts.httpsSets HTTPS port inside NGINX container8443
sessionAffinityControl where client requests go, to the same pod or round-robinNone
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
resourcesMetrics exporter resource requests and limits{}
podSecurityContext.enabledEnable ownCloud pods' Security Contexttrue
podSecurityContext.fsGroupownCloud pods' group ID1001
containerSecurityContext.enabledEnable ownCloud containers' Security Contexttrue
containerSecurityContext.runAsUserownCloud containers' Security Context1001
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.pathRequest path for livenessProbe/status.php
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.pathRequest path for readinessProbe/status.php
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
`readinessProbe.failureThres

Deploy owncloud with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has owncloud 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 chartowncloud is pinned at v10.2.24 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