diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-14 15:32:21 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-14 15:32:21 +0300 |
| commit | 112cf5742d65ac41ffd94680d4dce349626010a4 (patch) | |
| tree | 92ef0d2d832c629f34ff521bd39a42da898e5350 /f3s/goprecords/Justfile | |
| parent | e592c41ae27881cc645bb66d4c7fac9e976fad0f (diff) | |
Add goprecords service deployment for f3s.
Introduce Docker build/push workflow, Helm manifests, and ArgoCD application wiring for goprecords so the cluster can deploy the new daemon API service from the private registry.
Made-with: Cursor
Diffstat (limited to 'f3s/goprecords/Justfile')
| -rw-r--r-- | f3s/goprecords/Justfile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/f3s/goprecords/Justfile b/f3s/goprecords/Justfile new file mode 100644 index 0000000..b389fc0 --- /dev/null +++ b/f3s/goprecords/Justfile @@ -0,0 +1,46 @@ +NAMESPACE := "services" +APP_NAME := "goprecords" + +build: + just -f docker-image/Justfile build + +push: + just -f docker-image/Justfile push + +build-push: build push + +status: + @echo "=== Pods ===" + @kubectl get pods -n {{NAMESPACE}} | grep goprecords + @echo "" + @echo "=== Service ===" + @kubectl get svc -n {{NAMESPACE}} goprecords-service + @echo "" + @echo "=== Ingress ===" + @kubectl get ingress -n {{NAMESPACE}} goprecords-ingress + @echo "" + @echo "=== PVC ===" + @kubectl get pvc -n {{NAMESPACE}} goprecords-stats-pvc + @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 "" || echo "Not found" + +logs lines="100": + kubectl logs -n {{NAMESPACE}} -l app=goprecords --tail={{lines}} -f + +port-forward port="8080": + @echo "Forwarding goprecords to localhost:{{port}}" + kubectl port-forward -n {{NAMESPACE}} svc/goprecords-service {{port}}:80 + +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 goprecords..." + kubectl rollout restart -n {{NAMESPACE}} deployment/goprecords |
