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
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: torrents
|
- name: torrents
|
||||||
persistentVolumeClaim:
|
nfs:
|
||||||
claimName: torrents-storage
|
server: sifaka
|
||||||
|
path: /volume1/torrents
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,9 @@ spec:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: torrents
|
- name: torrents
|
||||||
persistentVolumeClaim:
|
nfs:
|
||||||
claimName: torrents-storage
|
server: sifaka
|
||||||
|
path: /volume1/torrents
|
||||||
- name: zim-torrents-config
|
- name: zim-torrents-config
|
||||||
configMap:
|
configMap:
|
||||||
name: kiwix-zim-torrents
|
name: kiwix-zim-torrents
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: kiwix
|
namespace: kiwix
|
||||||
resources:
|
resources:
|
||||||
- pvc.yaml
|
|
||||||
- configmap-zim-torrents.yaml
|
- configmap-zim-torrents.yaml
|
||||||
- configmap-sync-script.yaml
|
- configmap-sync-script.yaml
|
||||||
- deployment.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