monitoring: grafana-folder-acl CronJob fails every 2m post-germinate — cannot reach grafana service (ECONNREFUSED) #233
Labels
No labels
bug
discussion
duplicate
enhancement
goal
help wanted
horizon:backlog
horizon:governance
horizon:mvp
invalid
operator-decision
question
roadmap
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-platform/mitosis#233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
On a fresh single-node germination, the
grafana-folder-aclCronJob (*/2 * * * *, namespacemonitoring) fails every run and leaves a steady stream ofErrorpods:Pod log (Bun script):
No
grafana-folder-acljob has ever succeeded on this cluster.Not a startup race
Grafana itself is healthy —
kube-prometheus-stack-grafanapod is3/3 Running, service10.43.89.145:80/TCP, endpoints10.42.0.80:3000. Yet the failures persist for many minutes and across every job cycle after Grafana became Ready.To rule out the CronJob image, I ran an independent probe pod in the same namespace:
So a plain curl pod in
monitoringalso cannot reach the Grafana service — the folder-acl job is just the visible victim.Likely area: NetworkPolicies
monitoringhas adefault-deny-ingressplus allow-lists:allow-ingress-intra-namespace(empty pod-selector) is presumably meant to let in-namespace pods (the folder-acl job, the sidecars) reach Grafana, but ingress to Grafana:3000 is being refused/blocked in practice. Worth checking whetherallow-ingress-grafanaactually admits the folder-acl Job's pod labels / the intra-namespace policy covers port 3000, or whether the folder-acl Job needs a label the allow-list selects on.Environment
plat/mitosisorigin/main@b0ea45d,deploy/do, single droplet (ha=false),s-4vcpu-8gb, nyc3, k3sv1.31.5+k3s1.13.1.1; folder-acl image is a Bun script.Impact
Low urgency (Grafana serves fine; only the folder-ACL provisioning CronJob is broken), but it produces a continuous stream of
Errorpods every 2 minutes forever, which clutters the namespace and will trip any "failed pods" alerting.Fix on gitops main (already live on the parent; daughters inherit at next reseed): the
allow-ingress-intra-namespacepolicy now also matches by namespace membership — your evidence showed the namespaceSelector path (traefik → grafana) working while the podSelector-only intra-namespace allow refused every short-lived job pod, which is a known-fragile match on k3s's embedded netpol controller. If your platform still shows Error pods after pulling the netpol change, re-open with a freshkubectl -n monitoring run netcheck …probe.Closing platform-side: the namespace-membership match is live on the parent and ships in seed r779, so every new deploy is clean. For the existing platform from this report, pull the one-hunk netpol change into your gitops (
clusters/local/platform/monitoring/netpol.yaml, gitops 617b0554) — or redeploy from the current seed — and the folder-acl job goes green. Re-open with a freshnetcheckprobe if it doesn't.