diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-07 22:54:35 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-07 22:54:35 +0200 |
| commit | 9d9976ec7d325aefc3386bb1298cea8052732703 (patch) | |
| tree | 3625cc557202ff86106683e3523cac8d71caf369 /f3s/pushgateway/Justfile | |
| parent | f7624de03b894d31347ec15c9571e8cfe83903ff (diff) | |
Migrate remaining 4 apps: example-apache-volume-claim, registry, pushgateway, immich
Apps migrated in this commit:
- example-apache-volume-claim (test namespace, 2 replicas, 1 PVC)
- registry (infra namespace, Docker registry, 1 PVC)
- pushgateway (monitoring namespace, Prometheus metrics)
- immich (multi-component: server, postgres, valkey, ML)
Also:
- Deleted unused example-apache directory
- Updated all Justfiles with ArgoCD commands
- All apps synced and healthy
Progress: 16/22 active apps (73%)
Remaining apps (all in monitoring namespace):
- prometheus (kube-prometheus-stack)
- loki (umbrella chart)
- tempo
- grafana-ingress
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/pushgateway/Justfile')
| -rw-r--r-- | f3s/pushgateway/Justfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/f3s/pushgateway/Justfile b/f3s/pushgateway/Justfile new file mode 100644 index 0000000..f043d51 --- /dev/null +++ b/f3s/pushgateway/Justfile @@ -0,0 +1,32 @@ +NAMESPACE := "monitoring" +APP_NAME := "pushgateway" + +status: + @echo "=== Pods ===" + @kubectl get pods -n {{NAMESPACE}} | grep pushgateway + @echo "" + @echo "=== Service ===" + @kubectl get svc -n {{NAMESPACE}} pushgateway + @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 "" + +logs lines="100": + kubectl logs -n {{NAMESPACE}} -l app=pushgateway --tail={{lines}} -f + +port-forward port="9091": + @echo "Forwarding pushgateway to localhost:{{port}}" + kubectl port-forward -n {{NAMESPACE}} svc/pushgateway {{port}}:9091 + +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 pushgateway..." + kubectl rollout restart -n {{NAMESPACE}} deployment/pushgateway |
