diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-07 22:48:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-07 22:48:29 +0200 |
| commit | f7624de03b894d31347ec15c9571e8cfe83903ff (patch) | |
| tree | 88a35208c57c3fc7be94196574a99ce3322e522f /f3s/audiobookshelf/Justfile | |
| parent | f1925c872c496c914da99fcbf3a07c9292e911a7 (diff) | |
Migrate 8 remaining simple service apps to ArgoCD
Apps migrated in this commit:
- anki-sync-server (custom images, 1 PVC)
- syncthing (file sync, 2 PVCs)
- audiobookshelf (3 PVCs)
- radicale (CalDAV/CardDAV)
- opodsync (podcast sync, 2-container pod)
- kobo-sync-server (eReader sync)
- filebrowser (3 PVCs)
- webdav (WebDAV server)
All apps:
- Created ArgoCD Application manifests
- Updated Justfiles with ArgoCD commands
- All synced successfully and healthy
- Zero downtime migrations
Also includes:
- Updated migration progress tracker (12/23 apps, 52%)
- Deleted freshrss directory (app no longer needed)
Progress: 12/23 apps (52%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/audiobookshelf/Justfile')
| -rw-r--r-- | f3s/audiobookshelf/Justfile | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/f3s/audiobookshelf/Justfile b/f3s/audiobookshelf/Justfile index bc020be..b74631a 100644 --- a/f3s/audiobookshelf/Justfile +++ b/f3s/audiobookshelf/Justfile @@ -1,12 +1,38 @@ NAMESPACE := "services" -RELEASE_NAME := "audiobookshelf" -CHART_PATH := "./helm-chart" +APP_NAME := "audiobookshelf" -install: - helm install {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} --create-namespace +status: + @echo "=== Pods ===" + @kubectl get pods -n {{NAMESPACE}} | grep audiobookshelf + @echo "" + @echo "=== Service ===" + @kubectl get svc -n {{NAMESPACE}} audiobookshelf-service + @echo "" + @echo "=== Ingress ===" + @kubectl get ingress -n {{NAMESPACE}} audiobookshelf-ingress + @echo "" + @echo "=== PVCs ===" + @kubectl get pvc -n {{NAMESPACE}} | grep audiobookshelf + @echo "" + @echo "=== ArgoCD Status ===" + @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' 2>/dev/null && echo "" -upgrade: - helm upgrade {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} +logs lines="100": + kubectl logs -n {{NAMESPACE}} -l app=audiobookshelf --tail={{lines}} -f -delete: - helm uninstall {{RELEASE_NAME}} --namespace {{NAMESPACE}} +port-forward port="8000": + @echo "Forwarding audiobookshelf to localhost:{{port}}" + kubectl port-forward -n {{NAMESPACE}} svc/audiobookshelf-service {{port}}:8000 + +sync: + @echo "Triggering ArgoCD sync..." + @kubectl annotate application {{APP_NAME}} -n cicd argocd.argoproj.io/refresh=normal --overwrite + @sleep 2 + @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' && echo "" + +argocd-status: + argocd app get {{APP_NAME}} --core + +restart: + @echo "Restarting audiobookshelf..." + kubectl rollout restart -n {{NAMESPACE}} deployment/audiobookshelf |
