owncloud
by harish2k01
Deploys ownCloud Server with MariaDB and Redis on Kubernetes
About this chart
ownCloud Helm Chart
Browse the Helm chart catalog to explore available charts and installation commands.
This chart deploys ownCloud Server, a self-hosted file sync, share, and collaboration server, using the official owncloud/server container image with optional chart-managed MariaDB and Redis StatefulSets.
[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.
Install
helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install owncloud harish2k01/owncloud
Install From OCI
This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:
helm install owncloud oci://ghcr.io/harish2k01/helm-charts/owncloud --version 0.4.1
Initial Configuration
For a real deployment, set the public hostname and initial admin credentials before the first install:
owncloud:
domain: cloud.example.com
trustedDomains:
- cloud.example.com
admin:
existingSecret: owncloud-admin
usernameKey: username
passwordKey: password
The admin credentials are only used when ownCloud initializes a fresh data volume. Changing them later does not rotate the existing admin account.
Database And Redis
The default values deploy MariaDB 10.11 and Redis 8.10.2. See CHANGELOG.md for application/runtime compatibility, migration and datastore support notes.
database:
existingSecret: owncloud-db
passwordKey: password
mariadb:
enabled: true
redis:
enabled: true
internal: true
To use an external MySQL or MariaDB database:
mariadb:
enabled: false
database:
host: mariadb.database.svc.cluster.local
name: owncloud
username: owncloud
existingSecret: owncloud-db
passwordKey: password
To reuse an external Redis instance:
redis:
enabled: true
internal: false
host: redis.database.svc.cluster.local
For external Redis over TLS, use redis.host: tls://redis.example.com, set
redis.service.port to its listener port (for example 6380), and supply
OWNCLOUD_REDIS_PASSWORD through secretEnv.existingSecret.keys or extraEnv
Secret references. Mount custom CA/client certificates through the volume hooks
and set the commented OWNCLOUD_REDIS_TLS_* options in values as required. The
external connection uses the wrapper's startup handling rather than the chart's
plaintext internal Redis init probe. Keep peer/certificate verification enabled.
The chart passes redis.service.port to the ownCloud client. When changing the
chart-managed Redis listener too, also align redis.args (--port) and all
Redis probe commands with that port; their upstream defaults use 6379.
Web Access
Expose ownCloud with Gateway API:
owncloud:
domain: cloud.example.com
trustedDomains:
- cloud.example.com
httpRoutes:
main:
enabled: true
parentRefs:
- name: gateway
namespace: gateway-system
sectionName: https
hostnames:
- cloud.example.com
Or with Ingress:
owncloud:
domain: cloud.example.com
trustedDomains:
- cloud.example.com
ingress:
enabled: true
className: nginx
hosts:
- host: cloud.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: owncloud-tls
hosts:
- cloud.example.com
Persistence
ownCloud stores config, apps, files, and runtime state under /mnt/data:
persistence:
data:
enabled: true
size: 200Gi
storageClassName: ""
To reuse an existing claim:
persistence:
data:
existingClaim: owncloud-data
Production Hardening
Use existing Secrets for credentials, set resources, enable network policy if your CNI enforces it, and tune storage sizes for your file workload:
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 2Gi
networkPolicy:
enabled: true
podDisruptionBudget:
enabled: true
minAvailable: 1
Use extraInitContainers, sidecars, extraEnv, extraVolumes, extraVolumeMounts, scheduling controls, and Service load balancer settings for cluster-specific integrations.
Values
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of ownCloud replicas |
image.repository | string | owncloud/server | Container image repository |
image.tag | string | 11.1.0 | Container image tag |
image.pullPolicy | string | IfNotPresent | Container pull policy |
serviceAccount.create | bool | true | Create a ServiceAccount for ownCloud |
serviceAccount.automountServiceAccountToken | bool | false | Mount Kubernetes API token into the ownCloud pod |
podSecurityContext | object | {} | Pod-level security context |
securityContext | object | {} | Container-level security context |
deployment.revisionHistoryLimit | int | 3 | Number of old ReplicaSets to retain |
deployment.strategy | object | {type: Recreate} | Deployment update strategy |
owncloud.domain | string | localhost:8080 | Domain and optional port ownCloud uses for generated URLs |
owncloud.trustedDomains | list | [localhost] | Hostnames and IPs allowed by ownCloud trusted domain checks |
owncloud.mysqlUtf8mb4 | bool | true | Enable utf8mb4 support for MySQL/MariaDB |
owncloud.admin.username | string | admin | Initial admin username when no existing Secret is used |
owncloud.admin.password | string | CHANGE_ME_OWNCLOUD_ADMIN_PASSWORD | Initial admin password when no existing Secret is used |
owncloud.admin.existingSecret | string | "" | Existing Secret containing admin credentials |
database.type | string | mysql | ownCloud database type |
database.name | string | owncloud | Database name |
database.username | string | owncloud | Database username |
database.password | string | CHANGE_ME_OWNCLOUD_DB_PASSWORD | Database password when no existing Secret is used |
database.host | string | "" | External database host; empty uses the chart-managed MariaDB service |
database.existingSecret | string | "" | Existing Secret containing the database password |
env | object | {} | Additional non-secret ownCloud environment variables |
envFrom | list | [] | Additional environment sources |
extraEnv | list | [] | Additional Kubernetes EnvVar entries |
secretEnv.create | bool | false | Create a Kubernetes Secret from secretEnv.values |
secretEnv.existingSecret.name | string | "" | Existing Secret containing sensitive values |
mariadb.enabled | bool | true | Deploy a chart-managed MariaDB StatefulSet |
mariadb.image.repository | string | mariadb | MariaDB image repository |
mariadb.image.tag | string | 10.11 | MariaDB image tag |
mariadb.auth.rootPassword | string | "" | Optional MariaDB root password |
mariadb.args | list | upstream defaults | MariaDB container args |
mariadb.persistence.enabled | bool | true | Persist MariaDB data |
mariadb.persistence.size | string | 10Gi | MariaDB PVC size |
mariadb.resources | object | {} | MariaDB resource requests and limits |
redis.enabled | bool | true | Configure ownCloud to use Redis |
redis.internal | bool | true | Deploy a chart-managed Redis StatefulSet |
redis.host | string | "" | External Redis host when redis.internal=false |
redis.image.repository | string | redis | Redis image repository |
redis.image.tag | string | 8.10.2 | Redis image tag |
redis.persistence.enabled | bool | true | Persist Redis data |
redis.persistence.size | string | 1Gi | Redis PVC size |
redis.resources | object | {} | Redis resource requests and limits |
service.type | string | ClusterIP | Kubernetes Service type |
service.port | int | 8080 | Kubernetes Service port |
service.targetPort | string | http | Service target port |
service.loadBalancerIP | string | "" | Static LoadBalancer IP |
service.loadBalancerSourceRanges | list | [] | Allowed source ranges for LoadBalancer services |
service.extraPorts | list | [] | Additional Service ports |
containerPorts | list | [{name: http, containerPort: 8080, protocol: TCP}] | Container ports |
persistence.data.enabled | bool | true | Create or mount the ownCloud data PVC |
persistence.data.existingClaim | string | "" | Existing PVC for /mnt/data |
persistence.data.size | string | 50Gi | ownCloud data PVC size |
persistence.data.storageClassName | string | "" | ownCloud data PVC storage class |
extraVolumes | list | [] | Additional pod volumes |
extraVolumeMounts | list | [] | Additional container volume mounts |
ingress.enabled | bool | false | Create a Kubernetes Ingress |
httpRoutes.main.enabled | bool | false | Create a Gateway API HTTPRoute |
podDisruptionBudget.enabled | bool | false | Create a PodDisruptionBudget |
networkPolicy.enabled | bool | false | Create a NetworkPolicy |
resources | object | {} | Container resource requests and limits |
topologySpreadConstraints | list | [] | Pod topology spread constraints |
nodeSelector | object | {} | Pod node selector |
tolerations | list | [] | Pod tolerations |
affinity | object | {} | Pod affinity |
Redis 8.10.2 uses the same Service port, /data mount, database 0 and existing Redis integration. A new redis.startupProbe allows up to ten minutes for RDB/AOF loading before liveness starts. Customize it for large datasets or set it to {} to disable. Existing redis.args exposes Redis configuration flags, redis.extraEnv accepts official image entrypoint settings and Secret references, and redis.extraVolumes / redis.extraVolumeMounts support ACL/TLS/config files. Do not put passwords in plain-text arguments.
StatefulSet claim labels
Claim templates use stable identity labels so chart/app version changes do not modify immutable storage metadata. Normal workload labels still report the current versions. The following values merge explicitly pinned labels into each claim template:
mariadb.persistence.claimTemplateLabelsredis.persistence.claimTemplateLabels
For an existing StatefulSet created by an older chart, copy the labels from its current spec.volumeClaimTemplates[].metadata.labels into the corresponding map before the first upgrade. Keep any historical helm.sh/chart and app.kubernetes.io/version labels fixed there; they describe the original claim template, not the running app. This preserves the immutable template without deleting or replacing the StatefulSet/PVC. Empty defaults suit new installations. Helm lookup is not required, so GitOps/offline rendering remains deterministic. Do not remove pinned labels later without a separately planned migration. Storage size, claim names, access modes and other immutable fields have their own migration constraints.
Multiple HTTPRoutes
Use httpRoutes to define one or more routes, each with its own Gateway
references, hostnames, annotations, and rules. The default main entry is disabled.
httpRoutes:
internal:
parentRefs:
- name: internal-gateway
namespace: ingress
sectionName: https
hostnames: [app.internal.example.com]
external:
parentRefs:
- name: external-gateway
namespace: ingress
sectionName: https
hostnames: [app.example.com]
Each map key is a lowercase DNS label of up to 40 characters and becomes the
resource-name suffix (<app-fullname>-internal, for example). Long base names are
shortened to keep the suffix and stay within 63 characters; collisions fail rendering.
| Key | Default | Description |
|---|---|---|
httpRoutes | Disabled main entry | Named HTTPRoutes; defaults create no routes. |
httpRoutes.<name>.enabled | true | Set false to omit an entry, including its attachments. |
httpRoutes.<name>.parentRefs | Required when enabled | Gateway references, with optional namespace and listener section. |
httpRoutes.<name>.hostnames | Required when enabled | Independent explicit hostname list. |
httpRoutes.<name>.annotations | {} | Per-route annotations. |
httpRoutes.<name>.rules | Path prefix / | Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port. |
Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.
Migration from the single-route option
httpRoute has been removed. Move its settings under httpRoutes.main and remove
the old key entirely, including httpRoute.enabled: false. Old values fail
rendering with a migration message instead of silently dropping traffic. The old
resource <app-fullname> is replaced by <app-fullname>-main; coordinate the
upgrade with your GitOps pruning policy to avoid overlapping or missing routes.
Multiple hostnames and parent references apply to the whole route; use separate
entries when each hostname group must attach to a different Gateway.
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartowncloud is pinned at v0.4.1 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