108 lines
2.5 KiB
YAML
108 lines
2.5 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: webdav
|
|
namespace: webdav
|
|
spec:
|
|
interval: 30m
|
|
timeout: 10m
|
|
chartRef:
|
|
kind: OCIRepository
|
|
name: webdav
|
|
driftDetection:
|
|
mode: enabled
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
remediation:
|
|
retries: 3
|
|
values:
|
|
controllers:
|
|
app:
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/hacdias/webdav
|
|
tag: latest
|
|
args:
|
|
- "-c"
|
|
- "/config.yml"
|
|
env:
|
|
TZ: Europe/Moscow
|
|
WEBDAV_USERNAME:
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: webdav-secrets
|
|
key: WEBDAV_USERNAME
|
|
WEBDAV_PASSWORD:
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: webdav-secrets
|
|
key: WEBDAV_PASSWORD
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
readiness:
|
|
enabled: true
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
memory: 256Mi
|
|
|
|
service:
|
|
app:
|
|
controller: app
|
|
ports:
|
|
http:
|
|
port: 6065
|
|
|
|
ingress:
|
|
app:
|
|
className: traefik
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
hosts:
|
|
- host: dav.aggtaa.com
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- secretName: webdav-tls
|
|
hosts:
|
|
- dav.aggtaa.com
|
|
|
|
persistence:
|
|
config-yml:
|
|
type: configMap
|
|
name: webdav-config
|
|
globalMounts:
|
|
- path: /config.yml
|
|
subPath: config.yml
|
|
readOnly: true
|
|
data:
|
|
type: persistentVolumeClaim
|
|
existingClaim: ganesha-export
|
|
globalMounts:
|
|
- path: /webdav/export
|
|
photo:
|
|
type: persistentVolumeClaim
|
|
existingClaim: nfs-photo-export
|
|
globalMounts:
|
|
- path: /webdav/photo/library
|
|
sda2:
|
|
type: persistentVolumeClaim
|
|
existingClaim: nas1-sda2
|
|
globalMounts:
|
|
- path: /webdav/nas1/sda2
|
|
sdb2:
|
|
type: persistentVolumeClaim
|
|
existingClaim: nas1-sdb2
|
|
globalMounts:
|
|
- path: /webdav/nas1/sdb2
|