P6: Migrate Kiwix and Transmission to Kubernetes #39
4 changed files with 6 additions and 19 deletions
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 <noreply@anthropic.com>
commit
a243384d22
|
|
@ -50,8 +50,9 @@ spec:
|
|||
restartPolicy: OnFailure
|
||||
volumes:
|
||||
- name: torrents
|
||||
persistentVolumeClaim:
|
||||
claimName: torrents-storage
|
||||
nfs:
|
||||
server: sifaka
|
||||
path: /volume1/torrents
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue