108 lines
2.4 KiB
YAML
108 lines
2.4 KiB
YAML
nextcloud:
|
|
|
|
image:
|
|
repository: nextcloud
|
|
flavor: apache
|
|
pullPolicy: Always
|
|
|
|
replicaCount: 1
|
|
|
|
ingress:
|
|
enabled: true
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-body-size: 4G
|
|
kubernetes.io/ingress.class: nginx
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
nginx.ingress.kubernetes.io/server-snippet: |-
|
|
server_tokens off;
|
|
proxy_hide_header X-Powered-By;
|
|
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
|
|
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
|
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
|
|
location = /.well-known/carddav {
|
|
return 301 $scheme://$host/remote.php/dav;
|
|
}
|
|
location = /.well-known/caldav {
|
|
return 301 $scheme://$host/remote.php/dav;
|
|
}
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
|
|
deny all;
|
|
}
|
|
location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
|
|
deny all;
|
|
}
|
|
tls:
|
|
- secretName: nextcloud-tls
|
|
hosts:
|
|
- nextcloud.durp.info
|
|
labels: {}
|
|
path: /
|
|
pathType: Prefix
|
|
|
|
nextcloud:
|
|
host: nextcloud.durp.info
|
|
existingSecret:
|
|
enabled: true
|
|
secretName: nextcloud-secret
|
|
usernameKey: username
|
|
passwordKey: password
|
|
|
|
phpConfigs: {}
|
|
|
|
internalDatabase:
|
|
enabled: true
|
|
|
|
externalDatabase:
|
|
enabled: false
|
|
|
|
redis:
|
|
enabled: false
|
|
|
|
service:
|
|
type: ClusterIP
|
|
port: 8080
|
|
loadBalancerIP: nil
|
|
nodePort: nil
|
|
|
|
persistence:
|
|
enabled: true
|
|
annotations: {}
|
|
storageClass: "longhorn"
|
|
accessMode: ReadWriteMany
|
|
size: 50Gi
|
|
|
|
resources: {}
|
|
# limits:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
# requests:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
|
|
livenessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
successThreshold: 1
|
|
readinessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
successThreshold: 1
|
|
startupProbe:
|
|
enabled: false
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 30
|
|
successThreshold: 1
|