{"id":20542833,"url":"https://github.com/jerryshell/k8s-alist-longhorn","last_synced_at":"2025-08-03T13:07:58.953Z","repository":{"id":231849473,"uuid":"782861126","full_name":"jerryshell/k8s-alist-longhorn","owner":"jerryshell","description":"K8s Alist Longhorn","archived":false,"fork":false,"pushed_at":"2024-04-16T20:32:43.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T15:27:04.359Z","etag":null,"topics":["alist","homelab","k8s","kubernetes","longhorn"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerryshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T08:46:24.000Z","updated_at":"2024-04-08T11:00:26.000Z","dependencies_parsed_at":"2024-04-16T21:50:37.890Z","dependency_job_id":"e30d2468-b8ca-4c2d-901d-3dcc2c4c5127","html_url":"https://github.com/jerryshell/k8s-alist-longhorn","commit_stats":null,"previous_names":["jerryshell/k8s-alist-longhorn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fk8s-alist-longhorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fk8s-alist-longhorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fk8s-alist-longhorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fk8s-alist-longhorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerryshell","download_url":"https://codeload.github.com/jerryshell/k8s-alist-longhorn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242149837,"owners_count":20079994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alist","homelab","k8s","kubernetes","longhorn"],"created_at":"2024-11-16T01:34:35.592Z","updated_at":"2025-03-06T04:29:35.673Z","avatar_url":"https://github.com/jerryshell.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# K8s Alist Longhorn\n\n[K8s](https://kubernetes.io/) + [Alist](https://alist.nn.ci/) + [Longhorn](https://longhorn.io/)\n\n## Pre-requisites\n\n- Install Longhorn, Ref: [K8s PostgreSQL Longhorn](https://github.com/jerryshell/k8s-postgres-longhorn)\n- TLS Ingress, Ref: [K8s Traefik cert-manager DNS01 TLS](https://github.com/jerryshell/k8s-traefik-cert-manager-dns01-tls)\n\n## Git clone\n\n```bash\ngit clone https://github.com/jerryshell/k8s-alist-longhorn.git\ncd k8s-alist-longhorn\n```\n\n## PVC + Deployment + Service\n\n```bash\nkubectl apply -f k8s/\n```\n\n## Ingress\n\nReplace `pan.jerryshell.eu.org` with your own domain\n\n```bash\nexport HOST=pan.jerryshell.eu.org\ncat k8s/ingress/ingress.yaml | envsubst | kubectl apply -f -\n```\n\n## TLS Ingress\n\nReplace `pan.jerryshell.eu.org` with your own domain\n\n```bash\nexport HOST=pan.jerryshell.eu.org\ncat k8s/ingress/tls-ingress.yaml | envsubst | kubectl apply -f -\n```\n\n## Delete\n\n```bash\nkubectl delete --ignore-not-found=true -f k8s/ -f k8s/ingress/\n```\n\n## Note\n\n\u003cdetails\u003e\n\n\u003csummary\u003eChange alist-pvc Access Mode to ReadWriteMany\u003c/summary\u003e\n\n```bash\nkubectl get pvc alist-pvc -o jsonpath='{.spec.volumeName}'\n# pvc-UUID\nkubectl patch pv pvc-UUID -p '{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}}'\nkubectl scale --replicas=0 deployment alist\nkubectl delete pvc alist-pvc\nkubectl patch pv pvc-UUID -p '{\"spec\":{\"claimRef\":{\"uid\":\"\"}}}'\nkubectl patch pv pvc-UUID -p '{\"spec\":{\"accessModes\":[\"ReadWriteMany\"]}}'\n# Change alist-pvc.yaml accessModes to ReadWriteMany\nvim alist-pvc.yaml\nkubectl apply -f alist-pvc.yaml\nkubectl patch pv pvc-UUID -p '{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Delete\"}}'\nkubectl scale --replicas=1 deployment alist\n```\n\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\n\u003csummary\u003eIf using nohostname-ingress.yaml\u003c/summary\u003e\n\n```bash\nkubectl exec -it alist-XXX -- bash\n```\n\n```bash\nvi data/config.json\n```\n\n```json\n\"site_url\": \"/alist\"\n```\n\n\u003c/details\u003e\n\n## LICENSE\n\n[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Fk8s-alist-longhorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerryshell%2Fk8s-alist-longhorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Fk8s-alist-longhorn/lists"}