From a243384d223fd7c735fded90b068cde28379478b Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Wed, 21 Jan 2026 17:08:39 -0800 Subject: [PATCH] Use direct NFS mount for kiwix instead of PVC A PV can only bind to one PVC, so kiwix cannot share a PV with torrent. Instead, mount NFS directly in the pod spec for kiwix - this is simpler and works without needing a shared PV/PVC strategy. Co-Authored-By: Claude Opus 4.5 --- argocd/manifests/kiwix/cronjob-zim-watcher.yaml | 5 +++-- argocd/manifests/kiwix/deployment.yaml | 5 +++-- argocd/manifests/kiwix/kustomization.yaml | 1 - argocd/manifests/kiwix/pvc.yaml | 14 -------------- 4 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 argocd/manifests/kiwix/pvc.yaml diff --git a/argocd/manifests/kiwix/cronjob-zim-watcher.yaml b/argocd/manifests/kiwix/cronjob-zim-watcher.yaml index b0b0a6e..3e45f22 100644 --- a/argocd/manifests/kiwix/cronjob-zim-watcher.yaml +++ b/argocd/manifests/kiwix/cronjob-zim-watcher.yaml @@ -50,8 +50,9 @@ spec: restartPolicy: OnFailure volumes: - name: torrents - persistentVolumeClaim: - claimName: torrents-storage + nfs: + server: sifaka + path: /volume1/torrents --- apiVersion: v1 kind: ServiceAccount diff --git a/argocd/manifests/kiwix/deployment.yaml b/argocd/manifests/kiwix/deployment.yaml index 17469dc..1a18983 100644 --- a/argocd/manifests/kiwix/deployment.yaml +++ b/argocd/manifests/kiwix/deployment.yaml @@ -86,8 +86,9 @@ spec: volumes: - name: torrents - persistentVolumeClaim: - claimName: torrents-storage + nfs: + server: sifaka + path: /volume1/torrents - name: zim-torrents-config configMap: name: kiwix-zim-torrents diff --git a/argocd/manifests/kiwix/kustomization.yaml b/argocd/manifests/kiwix/kustomization.yaml index 79446c8..d5e563d 100644 --- a/argocd/manifests/kiwix/kustomization.yaml +++ b/argocd/manifests/kiwix/kustomization.yaml @@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kiwix resources: - - pvc.yaml - configmap-zim-torrents.yaml - configmap-sync-script.yaml - deployment.yaml diff --git a/argocd/manifests/kiwix/pvc.yaml b/argocd/manifests/kiwix/pvc.yaml deleted file mode 100644 index c838cd1..0000000 --- a/argocd/manifests/kiwix/pvc.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: torrents-storage - namespace: kiwix -spec: - accessModes: - - ReadWriteMany - storageClassName: "" - volumeName: torrents-nfs-pv - resources: - requests: - storage: 1Ti