From fce1da5b3fc02af10b8525e5bf4ac2446a364eb2 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Mon, 15 Jun 2026 01:52:14 +0530 Subject: [PATCH] chore: remove forgejo and registry dependencies --- .../base/openobserve-k8s-monitor-cronjob.yaml | 4 ---- clusters/production/kustomization.yaml | 1 - ops/openobserve-alerts/configmap.yaml | 11 ----------- 3 files changed, 16 deletions(-) diff --git a/apps/nxtgauge-backend-rust/base/openobserve-k8s-monitor-cronjob.yaml b/apps/nxtgauge-backend-rust/base/openobserve-k8s-monitor-cronjob.yaml index 37a044e..a32e6fd 100644 --- a/apps/nxtgauge-backend-rust/base/openobserve-k8s-monitor-cronjob.yaml +++ b/apps/nxtgauge-backend-rust/base/openobserve-k8s-monitor-cronjob.yaml @@ -64,8 +64,6 @@ spec: err = str(e) except Exception as e: err = str(e) - if name == "registry-svc" and status in (200, 401): - ok = True latency_ms = int((time.time() - start) * 1000) return { "kind": "endpoint", @@ -135,8 +133,6 @@ spec: ("frontend-svc", "http://nxtgauge-frontend-solid.nxtgauge.svc.cluster.local/"), ("admin-svc", "http://nxtgauge-admin-solid.nxtgauge.svc.cluster.local/"), ("api-gateway-svc", "http://nxtgauge-rust-gateway.nxtgauge.svc.cluster.local:9100/health"), - ("registry-svc", "http://docker-registry.registry.svc.cluster.local:5000/v2/"), - ("forgejo-svc", "http://forgejo-http.forgejo.svc.cluster.local:3000/"), ("flux-source-controller", "http://source-controller.flux-system.svc.cluster.local/metrics"), ("openobserve-svc", "http://o2-openobserve-standalone.openobserve.svc.cluster.local:5080/healthz"), ] diff --git a/clusters/production/kustomization.yaml b/clusters/production/kustomization.yaml index b4a7c6d..44f8c02 100644 --- a/clusters/production/kustomization.yaml +++ b/clusters/production/kustomization.yaml @@ -6,5 +6,4 @@ resources: - ../../apps/nxtgauge-admin-solid/overlays/prod - ../../apps/nxtgauge-ai-assistant/overlays/prod - ../../apps/ollama/base - - ../../apps/registry - ../../ops/openobserve-alerts diff --git a/ops/openobserve-alerts/configmap.yaml b/ops/openobserve-alerts/configmap.yaml index bfbb562..7a80e10 100644 --- a/ops/openobserve-alerts/configmap.yaml +++ b/ops/openobserve-alerts/configmap.yaml @@ -153,14 +153,3 @@ data: 10 2 30 \ "flux/{k8s_pod_name} {k8s_container_name}: {msg}" - ensure_alert \ - "forgejo-runner-errors" \ - "SELECT k8s_pod_name, k8s_container_name, substring(body, 1, 220) AS msg FROM \"default\" WHERE k8s_namespace_name = 'forgejo' AND (body ILIKE '%error%' OR body ILIKE '%ERROR%' OR body ILIKE '%failed%' OR body ILIKE '%job failed%') ORDER BY _timestamp DESC LIMIT 50" \ - 10 2 30 \ - "forgejo/{k8s_pod_name} {k8s_container_name}: {msg}" - - ensure_alert \ - "registry-errors" \ - "SELECT k8s_pod_name, k8s_container_name, substring(body, 1, 220) AS msg FROM \"default\" WHERE k8s_namespace_name = 'registry' AND (body ILIKE '%error%' OR body ILIKE '%ERROR%' OR body ILIKE '%413%' OR body ILIKE '%payload too large%') ORDER BY _timestamp DESC LIMIT 50" \ - 10 2 60 \ - "registry/{k8s_pod_name} {k8s_container_name}: {msg}"