owncloud

by harish2k01

Helm chartv0.4.1App 11.1.0MITVerified publisher

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

KeyTypeDefaultDescription
replicaCountint1Number of ownCloud replicas
image.repositorystringowncloud/serverContainer image repository
image.tagstring11.1.0Container image tag
image.pullPolicystringIfNotPresentContainer pull policy
serviceAccount.createbooltrueCreate a ServiceAccount for ownCloud
serviceAccount.automountServiceAccountTokenboolfalseMount Kubernetes API token into the ownCloud pod
podSecurityContextobject{}Pod-level security context
securityContextobject{}Container-level security context
deployment.revisionHistoryLimitint3Number of old ReplicaSets to retain
deployment.strategyobject{type: Recreate}Deployment update strategy
owncloud.domainstringlocalhost:8080Domain and optional port ownCloud uses for generated URLs
owncloud.trustedDomainslist[localhost]Hostnames and IPs allowed by ownCloud trusted domain checks
owncloud.mysqlUtf8mb4booltrueEnable utf8mb4 support for MySQL/MariaDB
owncloud.admin.usernamestringadminInitial admin username when no existing Secret is used
owncloud.admin.passwordstringCHANGE_ME_OWNCLOUD_ADMIN_PASSWORDInitial admin password when no existing Secret is used
owncloud.admin.existingSecretstring""Existing Secret containing admin credentials
database.typestringmysqlownCloud database type
database.namestringowncloudDatabase name
database.usernamestringowncloudDatabase username
database.passwordstringCHANGE_ME_OWNCLOUD_DB_PASSWORDDatabase password when no existing Secret is used
database.hoststring""External database host; empty uses the chart-managed MariaDB service
database.existingSecretstring""Existing Secret containing the database password
envobject{}Additional non-secret ownCloud environment variables
envFromlist[]Additional environment sources
extraEnvlist[]Additional Kubernetes EnvVar entries
secretEnv.createboolfalseCreate a Kubernetes Secret from secretEnv.values
secretEnv.existingSecret.namestring""Existing Secret containing sensitive values
mariadb.enabledbooltrueDeploy a chart-managed MariaDB StatefulSet
mariadb.image.repositorystringmariadbMariaDB image repository
mariadb.image.tagstring10.11MariaDB image tag
mariadb.auth.rootPasswordstring""Optional MariaDB root password
mariadb.argslistupstream defaultsMariaDB container args
mariadb.persistence.enabledbooltruePersist MariaDB data
mariadb.persistence.sizestring10GiMariaDB PVC size
mariadb.resourcesobject{}MariaDB resource requests and limits
redis.enabledbooltrueConfigure ownCloud to use Redis
redis.internalbooltrueDeploy a chart-managed Redis StatefulSet
redis.hoststring""External Redis host when redis.internal=false
redis.image.repositorystringredisRedis image repository
redis.image.tagstring8.10.2Redis image tag
redis.persistence.enabledbooltruePersist Redis data
redis.persistence.sizestring1GiRedis PVC size
redis.resourcesobject{}Redis resource requests and limits
service.typestringClusterIPKubernetes Service type
service.portint8080Kubernetes Service port
service.targetPortstringhttpService target port
service.loadBalancerIPstring""Static LoadBalancer IP
service.loadBalancerSourceRangeslist[]Allowed source ranges for LoadBalancer services
service.extraPortslist[]Additional Service ports
containerPortslist[{name: http, containerPort: 8080, protocol: TCP}]Container ports
persistence.data.enabledbooltrueCreate or mount the ownCloud data PVC
persistence.data.existingClaimstring""Existing PVC for /mnt/data
persistence.data.sizestring50GiownCloud data PVC size
persistence.data.storageClassNamestring""ownCloud data PVC storage class
extraVolumeslist[]Additional pod volumes
extraVolumeMountslist[]Additional container volume mounts
ingress.enabledboolfalseCreate a Kubernetes Ingress
httpRoutes.main.enabledboolfalseCreate a Gateway API HTTPRoute
podDisruptionBudget.enabledboolfalseCreate a PodDisruptionBudget
networkPolicy.enabledboolfalseCreate a NetworkPolicy
resourcesobject{}Container resource requests and limits
topologySpreadConstraintslist[]Pod topology spread constraints
nodeSelectorobject{}Pod node selector
tolerationslist[]Pod tolerations
affinityobject{}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.claimTemplateLabels
  • redis.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.

KeyDefaultDescription
httpRoutesDisabled main entryNamed HTTPRoutes; defaults create no routes.
httpRoutes.<name>.enabledtrueSet false to omit an entry, including its attachments.
httpRoutes.<name>.parentRefsRequired when enabledGateway references, with optional namespace and listener section.
httpRoutes.<name>.hostnamesRequired when enabledIndependent explicit hostname list.
httpRoutes.<name>.annotations{}Per-route annotations.
httpRoutes.<name>.rulesPath 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartowncloud is pinned at v0.4.1 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