apiVersion: v1 kind: Service metadata: name: paperless spec: ports: - protocol: TCP name: web port: 8000 selector: app: paperless --- apiVersion: apps/v1 kind: Deployment metadata: name: paperless labels: app: paperless spec: replicas: 1 selector: matchLabels: app: paperless template: metadata: labels: app: paperless spec: containers: - name: frontend image: bv11-cr01.bessems.eu/proxy/linuxserver/paperless-ng:1.5.0 env: - name: TZ value: Europe/Amsterdam ports: - name: web containerPort: 8000 volumeMounts: - mountPath: /data name: flexvolsmb-paperless-data - mountPath: /config name: flexvolsmb-paperless-config volumes: - name: flexvolsmb-paperless-data persistentVolumeClaim: claimName: flexvolsmb-paperless-data - name: flexvolsmb-paperless-config persistentVolumeClaim: claimName: flexvolsmb-paperless-config --- apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: paperless spec: entryPoints: - websecure routes: - match: Host(`ocr.spamasaurus.com`) kind: Rule services: - name: paperless port: 8000 middlewares: - name: security-headers@file - name: compression@file --- apiVersion: v1 kind: PersistentVolume metadata: name: flexvolsmb-paperless-data spec: capacity: storage: 1Gi accessModes: - ReadWriteMany storageClassName: flexvolsmb-paperless-data flexVolume: driver: mount/smb secretRef: name: smb-secret options: opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8 server: 192.168.11.225 share: /K3s.Volumes/paperless/data --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-paperless-data namespace: default spec: accessModes: - ReadWriteMany storageClassName: flexvolsmb-paperless-data resources: requests: storage: 1Gi --- apiVersion: v1 kind: PersistentVolume metadata: name: flexvolsmb-paperless-config spec: capacity: storage: 1Gi accessModes: - ReadWriteMany storageClassName: flexvolsmb-paperless-config flexVolume: driver: mount/smb secretRef: name: smb-secret options: opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl server: 192.168.11.225 share: /K3s.Volumes/paperless/config --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-paperless-config namespace: default spec: accessModes: - ReadWriteMany storageClassName: flexvolsmb-paperless-config resources: requests: storage: 1Gi