bittorrent-benchmarks/k8s/argo-workflows/vector-log-parsing-semaphore.yaml
Chrysostomos Nanakos 200c749cb5
feat(workflows): add Vector log parsing workflow template and synchronization
Add workflow template for parsing logs collected by Vector from Kubernetes
pods, with semaphore synchronization to prevent concurrent access conflicts.

- log-parsing-workflow-template-vector: New workflow template that scales
  down Vector aggregator to access RWO PVC, parses JSONL logs, then scales
  aggregator back up
- vector-log-parsing-semaphore: ConfigMap semaphore limiting to one log
  parsing workflow at a time (prevents RWO PVC mount conflicts)
- codex-workflows-rbac: Added deployment get/patch/update permissions to
  executor role (required for scaling Vector aggregator)

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
2025-10-21 13:25:00 +03:00

12 lines
370 B
YAML

# Semaphore for Vector log parsing workflow synchronization
# Ensures only one log parsing workflow can run at a time to avoid conflicts
# with the RWO vector-logs-pvc and Vector aggregator scaling
apiVersion: v1
kind: ConfigMap
metadata:
name: vector-log-parsing-semaphore
namespace: argo
data:
workflow: "1" # Only 1 workflow can hold this semaphore at a time