diff --git a/services/PVR/Jellyfin/application-jellyfin.yaml b/services/PVR/Jellyfin/application-jellyfin.yaml index ab2db74..01e0ebb 100644 --- a/services/PVR/Jellyfin/application-jellyfin.yaml +++ b/services/PVR/Jellyfin/application-jellyfin.yaml @@ -8,6 +8,10 @@ spec: server: https://kubernetes.default.svc namespace: jellyfin project: default + syncPolicy: + automated: {} + syncOptions: + - CreateNamespace=true sources: - repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog path: services/PVR/Jellyfin/manifests diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-config.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-config.yaml new file mode 100644 index 0000000..972d74b --- /dev/null +++ b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-config.yaml @@ -0,0 +1,33 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: smb.csi.k8s.io + name: csismb-jellyfin-config +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + storageClassName: csismb-jellyfin-config + mountOptions: + - dir_mode=0777 + - file_mode=0777 + - uid=911 + - gid=911 +# - nobrl + - cache=none + - mfsymlinks + - noserverino # required to prevent data corruption + csi: + driver: smb.csi.k8s.io + # volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name} + # make sure this value is unique for every share in the cluster + volumeHandle: 192.168.154.195#jellyfin#config + volumeAttributes: + source: //192.168.154.195/K3s.Volumes + subDir: jellyfin/config + nodeStageSecretRef: + name: smb-credentials + namespace: jellyfin diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-movies.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-movies.yaml new file mode 100644 index 0000000..d983cb2 --- /dev/null +++ b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-movies.yaml @@ -0,0 +1,33 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: smb.csi.k8s.io + name: csismb-jellyfin-movies +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + storageClassName: csismb-jellyfin-movies + mountOptions: + - dir_mode=0777 + - file_mode=0777 + - uid=911 + - gid=911 +# - nobrl + - cache=none + - mfsymlinks + - noserverino # required to prevent data corruption + csi: + driver: smb.csi.k8s.io + # volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name} + # make sure this value is unique for every share in the cluster + volumeHandle: 192.168.154.195#jellyfin#movies + volumeAttributes: + source: //192.168.154.195/Public + subDir: Video's/Films + nodeStageSecretRef: + name: smb-credentials + namespace: jellyfin diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-series.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-series.yaml new file mode 100644 index 0000000..cac0629 --- /dev/null +++ b/services/PVR/Jellyfin/manifests/persistentvolume-csismb-jellyfin-series.yaml @@ -0,0 +1,33 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: smb.csi.k8s.io + name: csismb-jellyfin-series +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + storageClassName: csismb-jellyfin-series + mountOptions: + - dir_mode=0777 + - file_mode=0777 + - uid=911 + - gid=911 +# - nobrl + - cache=none + - mfsymlinks + - noserverino # required to prevent data corruption + csi: + driver: smb.csi.k8s.io + # volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name} + # make sure this value is unique for every share in the cluster + volumeHandle: 192.168.154.195#jellyfin#series + volumeAttributes: + source: //192.168.154.195/Public + subDir: Video's/Series + nodeStageSecretRef: + name: smb-credentials + namespace: jellyfin diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-config.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-config.yaml deleted file mode 100644 index 1b999f2..0000000 --- a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-config.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: flexvolsmb-jellyfin-config - namespace: jellyfin -spec: - capacity: - storage: 1Gi - accessModes: - - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-config - flexVolume: - driver: mount/smb - secretRef: - name: flexvolsmb-credentials - options: - opts: file_mode=0777,dir_mode=0777,uid=911,gid=911,iocharset=utf8,cache=none - server: 192.168.154.195 - share: /K3s.Volumes/jellyfin/config diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-movies.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-movies.yaml deleted file mode 100644 index 15ca42d..0000000 --- a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-movies.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: flexvolsmb-jellyfin-movies - namespace: jellyfin -spec: - capacity: - storage: 1Gi - accessModes: - - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-movies - flexVolume: - driver: mount/smb - secretRef: - name: flexvolsmb-credentials - options: - opts: file_mode=0777,dir_mode=0777,uid=911,gid=911,iocharset=utf8,cache=none - server: 192.168.154.195 - share: /Public/Video's/Films diff --git a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-series.yaml b/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-series.yaml deleted file mode 100644 index 995253c..0000000 --- a/services/PVR/Jellyfin/manifests/persistentvolume-flexvolsmb-jellyfin-series.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: flexvolsmb-jellyfin-series - namespace: jellyfin -spec: - capacity: - storage: 1Gi - accessModes: - - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-series - flexVolume: - driver: mount/smb - secretRef: - name: flexvolsmb-credentials - options: - opts: file_mode=0777,dir_mode=0777,uid=911,gid=911,iocharset=utf8,cache=none - server: 192.168.154.195 - share: /Public/Video's/Series diff --git a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-movies.yaml b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-config.yaml similarity index 66% rename from services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-movies.yaml rename to services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-config.yaml index 044c471..2305c1a 100644 --- a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-movies.yaml +++ b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-config.yaml @@ -1,12 +1,12 @@ -apiVersion: v1 kind: PersistentVolumeClaim +apiVersion: v1 metadata: - name: flexvolsmb-jellyfin-movies + name: csismb-jellyfin-config namespace: jellyfin spec: accessModes: - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-movies resources: requests: storage: 1Gi + storageClassName: csismb-jellyfin-config diff --git a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-series.yaml b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-movies.yaml similarity index 66% rename from services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-series.yaml rename to services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-movies.yaml index b28f6e4..3ecb7c0 100644 --- a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-series.yaml +++ b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-movies.yaml @@ -1,12 +1,12 @@ -apiVersion: v1 kind: PersistentVolumeClaim +apiVersion: v1 metadata: - name: flexvolsmb-jellyfin-series + name: csismb-jellyfin-movies namespace: jellyfin spec: accessModes: - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-series resources: requests: storage: 1Gi + storageClassName: csismb-jellyfin-movies diff --git a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-config.yaml b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-series.yaml similarity index 66% rename from services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-config.yaml rename to services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-series.yaml index 173c25e..1aea12e 100644 --- a/services/PVR/Jellyfin/manifests/persistentvolumeclaim-flexvolsmb-jellyfin-config.yaml +++ b/services/PVR/Jellyfin/manifests/persistentvolumeclaim-csismb-jellyfin-series.yaml @@ -1,12 +1,12 @@ -apiVersion: v1 kind: PersistentVolumeClaim +apiVersion: v1 metadata: - name: flexvolsmb-jellyfin-config + name: csismb-jellyfin-series namespace: jellyfin spec: accessModes: - ReadWriteMany - storageClassName: flexvolsmb-jellyfin-config resources: requests: storage: 1Gi + storageClassName: csismb-jellyfin-series diff --git a/services/PVR/Jellyfin/manifests/sealedsecret-flexvolsmb-credentials.yaml b/services/PVR/Jellyfin/manifests/sealedsecret-flexvolsmb-credentials.yaml deleted file mode 100644 index 82d53e5..0000000 --- a/services/PVR/Jellyfin/manifests/sealedsecret-flexvolsmb-credentials.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: bitnami.com/v1alpha1 -kind: SealedSecret -metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: jellyfin -spec: - encryptedData: - password: AgCSzsJlQR2jIMsm7R9goGzziFCEb9quF+tvfXN3dKqWo/zviB4eU5CZ243bEX71eygU+1K7NpcPMF3yD1OB/QBsEKL1Lr62IcHeAHEnsySa2twfLR2wIINXm2kR946HRlmMkroUiJMAdDYCuYnXPxWRewmotvNL1ODK7Yu4rtaZbMjYrV/PDz8I6xIWmpTlsOOI7oj25ZngxS0W8OPMNn83yDR4zgsX2CenNygOfCXdYzJ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obbReH0+L3OqiEPF2ddgYIN+dcM665qEWQ3iEy94+JhtL715k00z6UYE70aM4wuFksbkMl4NjPFW38uQM4UMLEOg87I4h+C8p2k94UK7tQ4x9ZSL2dgIFf/wkf5/Ob6HTIFM= - template: - metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: jellyfin - type: mount/smb diff --git a/services/PVR/Jellyfin/manifests/sealedsecret-smb-credentials.yaml b/services/PVR/Jellyfin/manifests/sealedsecret-smb-credentials.yaml new file mode 100644 index 0000000..65d9520 --- /dev/null +++ b/services/PVR/Jellyfin/manifests/sealedsecret-smb-credentials.yaml @@ -0,0 +1,16 @@ +apiVersion: bitnami.com/v1alpha1 +kind: SealedSecret +metadata: + creationTimestamp: null + name: smb-credentials + namespace: jellyfin +spec: + encryptedData: + password: AgAKjCGM2YuuGiRc2ix7Hh3f71QfBH16jrU6i3WFH1ypVWwpkIsiiV1SGYfxUMuweW0xByl+54DvtWEpI9dJglvZpDgfdP4Br4jrzeF0if5eAnQA1nC2CXYAps49Do2YKR8umudp7J+Januugh8lRNz2RQUcDV0vtPWZJGOLTUK8ha4pL87IhQeGojW9eBc+iAL5pypWIyCsKJ0y8eq4JP6ZpO12XtNggcqa/QVdJrKAVJZnEjIHMO+g5mblNmrM+xjLQhsynHZE+88tPjpAFSpsymhT+841dd7yQqWN4WlSuVkPiDEKJHrSV/q+BQliVHXzWupdYJ2NXQn1R0Xzaw7IROEvk1Dhob4sQaYhI4m1hX0uD2ldYnY2KHY0FFMXJz+rIN/yNSokk+P8/Uh6qtslHfCHfanGtIZrAN2HZz83Q0CJu6YIzSgn1K05NDvXSJ2oRRs3RgootVXYiwm7snrDyAm1nLZ07fxP0omq5ZN1G5HzCZhYV6JCeF1MSejI89oK9cbmqJJFOcOVjs8PBFlFhFJrcsWJjx9z1e9GhNJKBj4xp7rX+nU+kXBqxlp2ZbliUJd8jlFKsihWj4T02ppekFwZee7ryLVhOllvd1QKwFKotwuhQVSJCiHFflKvwvcmqJ0nUv+L7COxPhFJHrmsCNmRH06hYIWoLYu61R+1U/ZY5BRXeWeClYKdAZOjahH5e+4f68kEUiGpb7tOWgNC + username: AgA/L2pauimeaL9iM9ng0HK9biOqQojt07f1eFLu2P6s/KrCFIAp7ItfMIPRjb9W/QLcAPmaEnHTweMejw9c2cybewlDrr+UlqRUZbCsKoIjh9AkrRthJAIv01u+KLGNrCpzsNeGdGc3QaBS1wE/DiYEN3tvgfcc6o/9wen9bGSaN/jJ1bfHfDIdO1Ccuo+92oIYxQbfl7M1Cm+9K8/LCOdNdT6vZr9+3LfnE1h7Qd8cSRg1Oo82X49Qo7b6HLofz7Y9YN3syxLjnVKZu4LHpmVWPsA1OXDaK70g90gnfLdk5qT264Snp+74NTszKTa+Eyceuw4Ztqf0KoraFrWMG+dpTnQ2NAsFfIw5rp7Wh45xMpOU7GWlaWu9PtD4mYGFBOsNlJllfBzabPE8SL/nB0AAq8PPrt2qIpshMBi+DA53bVZ0+pG+bL6bBGboWDnebrzXYjX8x3iQcg433BcvxIS/AAYBRIlrReaoYuvh1+qETDv3gcQzH5S4g4s4cXAQuvLaEHGHHZbh9Y37cr6SN/RsTv8L8ZEYprDf37sFJPx+JPDAXwhxvjl8i1a7ehAr3uSTrqg0AfPqdhC4ZrPN5QMGXGdhxzInsEzG3IRW1Xpey3ioD4coreywm2xZ4iMTtAL9RXAYbFAhRCPPpe+5hnsNZbNTIlFwyPldaLwZC8CGkqA4AJx+4FUFes5pbg0jgQoPNGDlgLo= + template: + metadata: + creationTimestamp: null + name: smb-credentials + namespace: jellyfin + type: Opaque