Rebase Sonarr smb volumes
This commit is contained in:
4
services/PVR/Sonarr/_namespace-sonarr.yaml
Normal file
4
services/PVR/Sonarr/_namespace-sonarr.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
18
services/PVR/Sonarr/application-sonarr.yaml
Normal file
18
services/PVR/Sonarr/application-sonarr.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
namespace: argo-cd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: sonarr
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated: {}
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog
|
||||||
|
path: services/PVR/Sonarr
|
||||||
|
targetRevision: HEAD
|
@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
namespace: pvr
|
namespace: sonarr
|
||||||
labels:
|
labels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
spec:
|
spec:
|
||||||
@ -17,7 +17,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
# image: bv11-cr01.bessems.eu/proxy/linuxserver/sonarr:latest
|
|
||||||
image: linuxserver/sonarr:latest
|
image: linuxserver/sonarr:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
@ -25,19 +24,19 @@ spec:
|
|||||||
containerPort: 8989
|
containerPort: 8989
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: flexvolsmb-sonarr-config
|
name: csismb-sonarr-config
|
||||||
- mountPath: /tv
|
- mountPath: /tv
|
||||||
name: flexvolsmb-pvr-series
|
name: csismb-sonarr-series
|
||||||
- mountPath: /downloads
|
- mountPath: /downloads
|
||||||
name: smb-pvr-volatile
|
name: csismb-sonarr-scratch
|
||||||
subPath: downloads
|
subPath: downloads
|
||||||
volumes:
|
volumes:
|
||||||
- name: flexvolsmb-sonarr-config
|
- name: csismb-sonarr-config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: flexvolsmb-sonarr-config
|
claimName: csismb-sonarr-config
|
||||||
- name: flexvolsmb-pvr-series
|
- name: csismb-sonarr-series
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: flexvolsmb-pvr-series
|
claimName: csismb-sonarr-series
|
||||||
- name: smb-pvr-volatile
|
- name: csismb-sonarr-scratch
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: smb-pvr-volatile
|
claimName: csismb-sonarr-scratch
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: traefik.io/v1alpha1
|
|||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
namespace: pvr
|
namespace: sonarr
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||||||
|
name: csismb-sonarr-config
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: csismb-sonarr-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#sonarr#config
|
||||||
|
volumeAttributes:
|
||||||
|
source: //192.168.154.195/K3s.Volumes
|
||||||
|
subDir: sonarr/config
|
||||||
|
nodeStageSecretRef:
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: sonarr
|
@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||||||
|
name: csismb-sonarr-scratch
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: csismb-sonarr-scratch
|
||||||
|
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#sonarr#scratch
|
||||||
|
volumeAttributes:
|
||||||
|
source: //192.168.154.195/K3s.Volumes
|
||||||
|
subDir: pvr/scratch
|
||||||
|
nodeStageSecretRef:
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: sonarr
|
@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||||||
|
name: csismb-sonarr-series
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: csismb-sonarr-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#sonarr#series
|
||||||
|
volumeAttributes:
|
||||||
|
source: //192.168.154.195/Public
|
||||||
|
subDir: Video's/Series
|
||||||
|
nodeStageSecretRef:
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: sonarr
|
@ -1,19 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: flexvolsmb-sonarr-config
|
|
||||||
namespace: pvr
|
|
||||||
spec:
|
|
||||||
capacity:
|
|
||||||
storage: 1Gi
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
storageClassName: flexvolsmb-sonarr-config
|
|
||||||
flexVolume:
|
|
||||||
driver: mount/smb
|
|
||||||
secretRef:
|
|
||||||
name: flexvolsmb-credentials
|
|
||||||
options:
|
|
||||||
opts: file_mode=0777,dir_mode=0777,uid=1000,gid=1000,iocharset=utf8,nobrl
|
|
||||||
server: 192.168.154.195
|
|
||||||
share: /K3s.Volumes/sonarr/config
|
|
@ -1,12 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: flexvolsmb-sonarr-config
|
name: csismb-sonarr-config
|
||||||
namespace: pvr
|
namespace: sonarr
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
storageClassName: flexvolsmb-sonarr-config
|
storageClassName: csismb-sonarr-config
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: csismb-sonarr-scratch
|
||||||
|
namespace: sonarr
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: csismb-sonarr-scratch
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: csismb-sonarr-series
|
||||||
|
namespace: sonarr
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: csismb-sonarr-series
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
16
services/PVR/Sonarr/sealedsecret-smb-credentials.yaml
Normal file
16
services/PVR/Sonarr/sealedsecret-smb-credentials.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: sonarr
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
password: AgArfIJJFIeJ35XvPXhlcZl7PMP9m68JDwAcPZvx62oxYGVNnVks73RCAgfb1Bc2cUcc8l3iDXU7VwEVBxgSJkuOJCKkq9X7C2d7RydIJwXzh1EqIynO8Xjt3oNsCTzuKBoOWjgVxsQz5fC21ZX02iI7SBLKUDcuBJeU9mWMF1r606vilALB3E9OXPVZl+qMJaORilFSHljMF3k18K+Ev26xLBBFyxzuNifjZtHaSN0Ly5AFfctQeOKI/uH6fhZKcbWsGQvFvDs3yKfMRSNn5+Bn9LQ3UbNpKX9ihMQKDEgUeaq0WkZdFi430O4u9jbr3OmT/aLnLFDx5Z+BTn5MEJO3mxTksEMnx8phWCRImd54cYZNHWMn0ZMgMOgMgjm1OTaXMWh54SqsIC33OZGwMShuLGjsrf+xnnG4SslZ8oIqDtw6pnW8uwfgShZ2HjplcnCHKt3VHC8avYPweu9lquZHLm2aP/SAT8+shFwS/tGXbRJb2TxfHS3qVRh+8yWB0sff9kasTrZlUT+kEmJCAUWqQp7qNifivAn22kPX7E5XSIaGiLfbP/Se9v/Q13wz8tqjeLs7BVIz2p05oFi0XOlUlKiS9zZXRRQIDjTSqQinA5gcFpzNRmOoMwPTkGP9t0aTC/NEVXf06ik66Go5U/G1He5lTFOkk6N6UDHprEapgUkydnv/u8jhI49qGDnIB3/RgQFNMTcaCQmm8DMu7AJR
|
||||||
|
username: AgAsrDTZbDn4jszTzh1XpD/AcxGPYNLDJgUg17XfOt7l2D1TreS2GHR2IxCy24lEPkBlDS2p3eHoP+bVTE/PWG3oxaUNyKUxZ4kXihl0aUqEpR5ydcKd3Iu28ClK9QJK00XIQsjA4aUF22nUT54bVHWg0pHzhU4MA2LBi9S9Y15X1uTTOdY8sVt5WdBnLoKjgU+qJEuYxW2EGMhI8aS7DIAD8JLjxfhxwnm79DNvL+gUv9Vii1D8vXvoC+upoHJS8ggOCbad+9igu9CtfHziurcEBinE1VbxZfJcBGSWPogBIGaKbRrIRfBXcyixLH4MIyfRMIf3OsRynOUf5hJhinGq8xfLqhadLL5rXvqMupwHcQtLTBG2aPdlW0kCqvSerX+uNZtocwOms4CyN7i+8O2o+VTxHNuocNiEXlVfGSt8cljRNHpgACa4D+XvkCMG8KGBxWtGXXAEGGL9yeNC3DZgdZRuzZkHZpe6gdEOAKC6Mu8Bu9wTYN3gN4yA2id4U8H3L7a6dCUTdjn7cenhXYj41/6vMprrr4oUO46O+F4BUcEF6H/Taifc2aGxg0QrPBh7bMvlQHvTwNlk/yswGUhPz/JhlES/ypSpa/XvKkqNuJtAUbDBqOgb85XKuuwUhXEcpQakZLSaDUmDxUDCxW4qM3DQ81u6dKWkcVwIKtiXk4RMyTbTkMnRP9+Z9uDVkhn6qVq7sDk=
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: sonarr
|
||||||
|
type: Opaque
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
namespace: pvr
|
namespace: sonarr
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
|
Reference in New Issue
Block a user