add photoview
This commit is contained in:
		| @@ -222,6 +222,12 @@ homepage: | ||||
|                   href: https://mail-cl01tl.boreal-beaufort.ts.net | ||||
|                   siteMonitor: http://roundcube.roundcube:80 | ||||
|                   statusStyle: dot | ||||
|               - Pictures: | ||||
|                   icon: sh-photoview.svg | ||||
|                   description: Photoview | ||||
|                   href: https://photoview-cl01tl.boreal-beaufort.ts.net | ||||
|                   siteMonitor: http://photoview.photoview:80 | ||||
|                   statusStyle: dot | ||||
|           - Code: | ||||
|               - Code (Public): | ||||
|                   icon: sh-gitea.svg | ||||
|   | ||||
							
								
								
									
										28
									
								
								clusters/cl01tl/applications/photoview/Chart.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								clusters/cl01tl/applications/photoview/Chart.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| apiVersion: v2 | ||||
| name: photoview | ||||
| version: 1.0.0 | ||||
| description: Photoview | ||||
| keywords: | ||||
|   - photoview | ||||
|   - pictures | ||||
| home: https://wiki.alexlebens.dev/doc/photoview-WSRscnhpwv | ||||
| sources: | ||||
|   - https://github.com/immich-app/immich | ||||
|   - https://github.com/valkey-io/valkey | ||||
|   - https://github.com/cloudnative-pg/cloudnative-pg | ||||
|   - https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template | ||||
|   - https://github.com/bitnami/charts/tree/main/bitnami/valkey | ||||
|   - https://github.com/alexlebens/helm-charts/charts/postgres-cluster | ||||
| maintainers: | ||||
|   - name: alexlebens | ||||
| dependencies: | ||||
|   - name: app-template | ||||
|     alias: photoview | ||||
|     repository: https://bjw-s.github.io/helm-charts/ | ||||
|     version: 3.6.0 | ||||
|   - name: postgres-cluster | ||||
|     alias: postgres-17-cluster | ||||
|     version: 4.1.3 | ||||
|     repository: http://alexlebens.github.io/helm-charts | ||||
| icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/photoview.png | ||||
| appVersion: 2.4.0 | ||||
| @@ -0,0 +1,30 @@ | ||||
| apiVersion: external-secrets.io/v1beta1 | ||||
| kind: ExternalSecret | ||||
| metadata: | ||||
|   name: photoview-postgresql-17-cluster-backup-secret | ||||
|   namespace: {{ .Release.Namespace }} | ||||
|   labels: | ||||
|     app.kubernetes.io/name: photoview-postgresql-17-cluster-backup-secret | ||||
|     app.kubernetes.io/instance: {{ .Release.Name }} | ||||
|     app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||||
|     app.kubernetes.io/component: database | ||||
|     app.kubernetes.io/part-of: {{ .Release.Name }} | ||||
| spec: | ||||
|   secretStoreRef: | ||||
|     kind: ClusterSecretStore | ||||
|     name: vault | ||||
|   data: | ||||
|     - secretKey: ACCESS_KEY_ID | ||||
|       remoteRef: | ||||
|         conversionStrategy: Default | ||||
|         decodingStrategy: None | ||||
|         key: /digital-ocean/home-infra/postgres-backups | ||||
|         metadataPolicy: None | ||||
|         property: access | ||||
|     - secretKey: ACCESS_SECRET_KEY | ||||
|       remoteRef: | ||||
|         conversionStrategy: Default | ||||
|         decodingStrategy: None | ||||
|         key: /digital-ocean/home-infra/postgres-backups | ||||
|         metadataPolicy: None | ||||
|         property: secret | ||||
| @@ -0,0 +1,19 @@ | ||||
| apiVersion: v1 | ||||
| kind: PersistentVolumeClaim | ||||
| metadata: | ||||
|   name: photoview-nfs-storage | ||||
|   namespace: {{ .Release.Namespace }} | ||||
|   labels: | ||||
|     app.kubernetes.io/name: photoview-nfs-storage | ||||
|     app.kubernetes.io/instance: {{ .Release.Name }} | ||||
|     app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||||
|     app.kubernetes.io/component: storage | ||||
|     app.kubernetes.io/part-of: {{ .Release.Name }} | ||||
| spec: | ||||
|   volumeName: photoview-nfs-storage | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteMany | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 1Gi | ||||
| @@ -0,0 +1,25 @@ | ||||
| apiVersion: v1 | ||||
| kind: PersistentVolume | ||||
| metadata: | ||||
|   name: photoview-nfs-storage | ||||
|   namespace: {{ .Release.Namespace }} | ||||
|   labels: | ||||
|     app.kubernetes.io/name: photoview-nfs-storage | ||||
|     app.kubernetes.io/instance: {{ .Release.Name }} | ||||
|     app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||||
|     app.kubernetes.io/component: storage | ||||
|     app.kubernetes.io/part-of: {{ .Release.Name }} | ||||
| spec: | ||||
|   persistentVolumeReclaimPolicy: Retain | ||||
|   storageClassName: nfs-client | ||||
|   capacity: | ||||
|     storage: 1Gi | ||||
|   accessModes: | ||||
|     - ReadWriteMany | ||||
|   nfs: | ||||
|     path: /volume2/Storage/Pictures | ||||
|     server: synologybond.alexlebens.net | ||||
|   mountOptions: | ||||
|     - vers=4 | ||||
|     - minorversion=1 | ||||
|     - noac | ||||
							
								
								
									
										89
									
								
								clusters/cl01tl/applications/photoview/values.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										89
									
								
								clusters/cl01tl/applications/photoview/values.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,89 @@ | ||||
| photoview: | ||||
|   controllers: | ||||
|     main: | ||||
|       type: deployment | ||||
|       replicas: 1 | ||||
|       strategy: Recreate | ||||
|       revisionHistoryLimit: 3 | ||||
|       containers: | ||||
|         main: | ||||
|           image: | ||||
|             repository: photoview/photoview | ||||
|             tag: 2.4.0 | ||||
|             pullPolicy: IfNotPresent | ||||
|           env: | ||||
|             - name: PHOTOVIEW_DATABASE_DRIVER | ||||
|               value: postgres | ||||
|             - name: PHOTOVIEW_POSTGRES_URL | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|                   name: photoview-postgresql-17-cluster-app | ||||
|                   key: uri | ||||
|             - name: PHOTOVIEW_VIDEO_HARDWARE_ACCELERATION | ||||
|               value: qsv | ||||
|           resources: | ||||
|             requests: | ||||
|               gpu.intel.com/i915: 1 | ||||
|               cpu: 10m | ||||
|               memory: 512Mi | ||||
|             limits: | ||||
|               gpu.intel.com/i915: 1 | ||||
|   serviceAccount: | ||||
|     create: true | ||||
|   service: | ||||
|     main: | ||||
|       controller: main | ||||
|       ports: | ||||
|         http: | ||||
|           port: 80 | ||||
|           targetPort: 80 | ||||
|           protocol: HTTP | ||||
|   ingress: | ||||
|     main: | ||||
|       enabled: true | ||||
|       className: tailscale | ||||
|       hosts: | ||||
|         - host: photoview-cl01tl | ||||
|           paths: | ||||
|             - path: / | ||||
|               pathType: Prefix | ||||
|               service: | ||||
|                 name: photoview | ||||
|                 port: 80 | ||||
|       tls: | ||||
|         - hosts: | ||||
|             - photoview-cl01tl | ||||
|   persistence: | ||||
|     media: | ||||
|       existingClaim: photoview-nfs-storage | ||||
|       advancedMounts: | ||||
|         main: | ||||
|           main: | ||||
|             - path: /photos | ||||
|               readOnly: true | ||||
|     cache: | ||||
|       storageClass: ceph-block-delete | ||||
|       accessMode: ReadWriteOnce | ||||
|       size: 10Gi | ||||
|       retain: false | ||||
|       advancedMounts: | ||||
|         main: | ||||
|           main: | ||||
|             - path: /home/photoview/media-cache | ||||
|               readOnly: false | ||||
| postgres-17-cluster: | ||||
|   mode: standalone | ||||
|   cluster: | ||||
|     walStorage: | ||||
|       storageClass: local-path | ||||
|     storage: | ||||
|       storageClass: local-path | ||||
|     monitoring: | ||||
|       enabled: true | ||||
|   backup: | ||||
|     enabled: true | ||||
|     endpointURL: https://nyc3.digitaloceanspaces.com | ||||
|     destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/photoview/photoview-postgresql-17-cluster | ||||
|     endpointCredentials: photoview-postgresql-17-cluster-backup-secret | ||||
|     backupIndex: 1 | ||||
|     retentionPolicy: "7d" | ||||
		Reference in New Issue
	
	Block a user