diff --git a/emby/entrypoint.sh b/emby/entrypoint.sh index d3ad118..78564f9 100644 --- a/emby/entrypoint.sh +++ b/emby/entrypoint.sh @@ -6,7 +6,7 @@ while ! wget -q -T 1 -O /dev/null http://${ALIST_DOMAIN} &> /dev/null; do done echo "等待元数据下载完成..." -while test ! -f /media/config/emby_meta_finished; do +while test ! -f /config/emby_meta_finished; do sleep 2 done diff --git a/helmfile.yaml b/helmfile.yaml index d9c8265..949834c 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -10,14 +10,13 @@ releases: version: 0.2.4 values: - port: 80 - global: - storageClassName: longhorn-single nodeSelector: kubernetes.io/hostname: nuc-1-node-1 image: repository: ghcr.io name: monlor/xiaoya-alist tag: latest + pullPolicy: Always env: TZ: Asia/Shanghai ALIYUN_TOKEN: @@ -28,10 +27,9 @@ releases: volumes: - name: data mountPath: /data - persistentVolume: - create: true - accessModes: ReadWriteMany - storageSize: 256Mi + hostPath: + path: /opt/xiaoya/data + type: DirectoryOrCreate strategy: type: Recreate resources: @@ -53,43 +51,39 @@ releases: chart: monlor/quickchart version: 0.2.4 values: - - global: - storageClassName: longhorn-single - nodeSelector: + - nodeSelector: kubernetes.io/hostname: nuc-1-node-1 image: repository: ghcr.io name: monlor/xiaoya-glue tag: latest + pullPolicy: Always env: TZ: Asia/Shanghai ALIST_ADDR: http://alist:80 EMBY_ENABLED: true JELLYFIN_ENABLED: false - AUTO_UPDATE_EMBY_CONFIG_ENABLED: true volumes: - - name: alist-data + - name: data mountPath: /etc/xiaoya - persistentVolume: - accessModes: ReadWriteMany + hostPath: + path: /opt/xiaoya/data + type: DirectoryOrCreate - name: media mountPath: /media/xiaoya - persistentVolume: - create: true - accessModes: ReadWriteMany - storageSize: 200Gi + hostPath: + path: /opt/xiaoya/media + type: DirectoryOrCreate - name: config mountPath: /media/config - persistentVolume: - create: true - accessModes: ReadWriteMany - storageSize: 200Gi + hostPath: + path: /opt/xiaoya/config + type: DirectoryOrCreate - name: meta mountPath: /media/temp - persistentVolume: - create: true - accessModes: ReadWriteOnce - storageSize: 200Gi + hostPath: + path: /opt/xiaoya/temp + type: DirectoryOrCreate strategy: type: Recreate resources: @@ -106,33 +100,33 @@ releases: version: 0.2.4 values: - port: 8096 - global: - storageClassName: longhorn-single nodeSelector: kubernetes.io/hostname: nuc-1-node-1 image: repository: ghcr.io name: monlor/xiaoya-emby tag: latest + pullPolicy: Always env: TZ: Asia/Shanghai GIDLIST: 0,0 ALIST_DOMAIN: alist volumes: - - name: glue-media + - name: media mountPath: /media - persistentVolume: - accessModes: ReadWriteMany - - name: glue-config + hostPath: + path: /opt/xiaoya/media + type: DirectoryOrCreate + - name: config mountPath: /config - persistentVolume: - accessModes: ReadWriteMany + hostPath: + path: /opt/xiaoya/config + type: DirectoryOrCreate - name: cache mountPath: /cache - persistentVolume: - create: true - accessModes: ReadWriteOnce - storageSize: 10Gi + hostPath: + path: /opt/xiaoya/config/cache + type: DirectoryOrCreate - name: dri mountPath: /dev/dri hostPath: diff --git a/jellyfin/entrypoint.sh b/jellyfin/entrypoint.sh index ce94fe8..a2a2734 100644 --- a/jellyfin/entrypoint.sh +++ b/jellyfin/entrypoint.sh @@ -6,7 +6,7 @@ while ! curl -s -f -m 1 http://${ALIST_DOMAIN} &> /dev/null; do done echo "等待元数据下载完成..." -while test ! -f /media/config/jellyfin_meta_finished; do +while test ! -f /config/jellyfin_meta_finished; do sleep 2 done