Common tasks and troubleshooting
Monitor the health of all PatchPulse components:
kubectl get pods -n patchpulsecurl http://backend:8000/healthcurl http://backend:8000/metricsAccess decisions via the dashboard or API:
/dashboardGET /api/v1/decisions?limit=50GET /api/v1/decisions?risk_min=70Switch between advisory and enforce modes:
POLICY_MODE=enforcekubectl rollout restart deployment/patchpulse-backendIf the agent isn't sending cluster signals:
kubectl logs -n patchpulse deployment/patchpulse-agentSet up repository monitoring:
kubectl create secret generic git-secrets --from-literal=token=YOUR_TOKENBackup decision data and restore if needed:
kubectl exec -it postgres-pod -- pg_dump patchpulse > backup.sqlkubectl exec -i postgres-pod -- psql patchpulse < backup.sql