Files
media-charts/owncloud/values.yaml

120 lines
2.6 KiB
YAML

# Default values for owncloud.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: owncloud/server
pullPolicy: IfNotPresent
tag: "latest"
# Security context for the container
podSecurityContext:
runAsUser: 33
runAsGroup: 33
fsGroup: 33
# Init container for setting up permissions
initContainers:
permissions:
enabled: true
image: busybox
tag: latest
command:
- sh
- -c
- |
# Create directories if they don't exist
mkdir -p /var/www/owncloud/config /var/www/owncloud/data
# Set permissions but preserve mount points
find /var/www/owncloud/config -exec chown 33:33 {} \;
find /var/www/owncloud/data -exec chown 33:33 {} \;
# Ensure base directories have correct permissions
chown 33:33 /var/www/owncloud/config
chown 33:33 /var/www/owncloud/data
# Database configuration
database:
type: "pgsql" # can be pgsql or mysql
# External database configuration
external:
enabled: false
host: ""
port: 5432
database: "owncloud"
username: "owncloud"
# Secret containing the database password
existingSecret: ""
existingSecretKey: "password"
# Admin user configuration
admin:
username: "admin"
# Secret containing the admin password
existingSecret: ""
existingSecretKey: "password"
service:
type: ClusterIP
port: 8080
# Environment variables
env:
TZ: "UTC"
# Additional environment variables if needed
OWNCLOUD_DOMAIN: "cloud.local"
OWNCLOUD_TRUSTED_DOMAINS: "cloud.local"
OWNCLOUD_REDIS_ENABLED: "false"
# PHP settings
PHP_MEMORY_LIMIT: "512M"
PHP_UPLOAD_LIMIT: "512M"
# Persistence configuration
persistence:
config:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 5Gi
mountPath: /var/www/owncloud/config
# Optional: Use existing PVC
existingClaim: ""
files:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 100Gi
mountPath: /var/www/owncloud/data
# Optional: Use existing PVC
existingClaim: ""
ingress:
enabled: false
className: "nginx"
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/proxy-body-size: "512m"
hosts:
- host: cloud.local
paths:
- path: /
pathType: Prefix
tls: []
# - secretName: owncloud-tls
# hosts:
# - cloud.local
resources:
limits:
cpu: 2000m
memory: 2Gi
requests:
cpu: 500m
memory: 512Mi
nodeSelector: {}
tolerations: []
affinity: {}