add existingclaim option to plex
This commit is contained in:
29
README.md
29
README.md
@ -88,6 +88,29 @@ persistence:
|
|||||||
existingClaim: "qbittorrent-downloads" # Use the PVC created by qBittorrent
|
existingClaim: "qbittorrent-downloads" # Use the PVC created by qBittorrent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3. For Plex, you can reuse existing storage for all volume types:
|
||||||
|
```yaml
|
||||||
|
# plex/values.yaml
|
||||||
|
persistence:
|
||||||
|
# Use existing PVC for configuration
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: "plex-config" # Optional: reuse existing config PVC
|
||||||
|
# Use existing PVC for transcoding
|
||||||
|
transcode:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: "plex-transcode" # Optional: reuse existing transcode PVC
|
||||||
|
# Use existing PVC for media
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: "media-storage" # Optional: reuse existing media PVC
|
||||||
|
```
|
||||||
|
|
||||||
|
This allows you to:
|
||||||
|
- Preserve Plex configuration across reinstalls
|
||||||
|
- Share transcode space between multiple Plex instances
|
||||||
|
- Mount existing media libraries
|
||||||
|
|
||||||
#### Setting Up Ingress
|
#### Setting Up Ingress
|
||||||
|
|
||||||
Each service can be exposed using Kubernetes ingress. Here's a detailed example:
|
Each service can be exposed using Kubernetes ingress. Here's a detailed example:
|
||||||
@ -291,8 +314,8 @@ You can serve these charts from your own server. The repository structure is ava
|
|||||||
### Adding the Repository to Helm
|
### Adding the Repository to Helm
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Add the repository (using Gitea raw access)
|
# Add the repository
|
||||||
helm repo add media-charts https://git.mumme-it.de/Felix/media-charts/raw/branch/main/.packaged
|
helm repo add media-charts https://git.mumme-it.de/Mumme-IT/media-charts/raw/branch/main/.packaged
|
||||||
|
|
||||||
# Update the repository cache
|
# Update the repository cache
|
||||||
helm repo update
|
helm repo update
|
||||||
@ -304,7 +327,7 @@ helm search repo media-charts
|
|||||||
### Repository Source
|
### Repository Source
|
||||||
|
|
||||||
The source code for these charts is available at:
|
The source code for these charts is available at:
|
||||||
https://git.mumme-it.de/Felix/media-charts
|
https://git.mumme-it.de/Mumme-IT/media-charts
|
||||||
|
|
||||||
### Installing Charts from Repository
|
### Installing Charts from Repository
|
||||||
|
|
||||||
|
@ -83,14 +83,22 @@ spec:
|
|||||||
- name: config
|
- name: config
|
||||||
{{- if .Values.persistence.config.enabled }}
|
{{- if .Values.persistence.config.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
{{- if .Values.persistence.config.existingClaim }}
|
||||||
|
claimName: {{ .Values.persistence.config.existingClaim }}
|
||||||
|
{{- else }}
|
||||||
claimName: {{ include "plex.fullname" . }}-config
|
claimName: {{ include "plex.fullname" . }}-config
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: transcode
|
- name: transcode
|
||||||
{{- if .Values.persistence.transcode.enabled }}
|
{{- if .Values.persistence.transcode.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
{{- if .Values.persistence.transcode.existingClaim }}
|
||||||
|
claimName: {{ .Values.persistence.transcode.existingClaim }}
|
||||||
|
{{- else }}
|
||||||
claimName: {{ include "plex.fullname" . }}-transcode
|
claimName: {{ include "plex.fullname" . }}-transcode
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.persistence.config.enabled }}
|
{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@ -16,7 +16,7 @@ spec:
|
|||||||
storage: {{ .Values.persistence.config.size | quote }}
|
storage: {{ .Values.persistence.config.size | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- if .Values.persistence.transcode.enabled }}
|
{{- if and .Values.persistence.transcode.enabled (not .Values.persistence.transcode.existingClaim) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -60,12 +60,16 @@ persistence:
|
|||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
# Optional: Use existing PVC for config
|
||||||
|
existingClaim: ""
|
||||||
transcode:
|
transcode:
|
||||||
enabled: true
|
enabled: true
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
mountPath: /transcode
|
mountPath: /transcode
|
||||||
|
# Optional: Use existing PVC for transcode
|
||||||
|
existingClaim: ""
|
||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
@ -74,6 +78,9 @@ persistence:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
# Optional: Use existing PVC
|
# Optional: Use existing PVC
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
|
# Optional: Use existing media storage
|
||||||
|
# Example: "movies-pvc" to reuse storage from Radarr
|
||||||
|
# Example: "tv-pvc" to reuse storage from Sonarr
|
||||||
|
|
||||||
# Hardware transcoding support
|
# Hardware transcoding support
|
||||||
# Note: Requires compatible hardware and drivers
|
# Note: Requires compatible hardware and drivers
|
||||||
|
Reference in New Issue
Block a user