docs(internal gateway): record the on-demand repro and the label alert firing

This commit is contained in:
Lance Walters 2026-10-27 01:19:21 -04:00
commit de30bc43e7

View file

@ -759,6 +759,31 @@ There is **no Alertmanager** in the stack, so this is visible in Prometheus
`/alerts` and Grafana → Alerting, not paged. Next step if a page is wanted: add `/alerts` and Grafana → Alerting, not paged. Next step if a page is wanted: add
a contact point/receiver, not another probe. a contact point/receiver, not another probe.
The probe catches the **symptom**; `GatewayNodeCountNotOne`
(`count(kube_node_role{role="gateway"}) != 1`, 5 m) catches the **cause** —
kube-state-metrics exposes role labels as `kube_node_role`, so relabelling a
node is visible without a second scrape target. Both were proved by putting the
bug back on purpose:
```
$ kubectl label node rpi node-role.kubernetes.io/gateway=true --overwrite
node/rpi labeled
$ kubectl -n kube-system get pods -l k8s-app=cilium-envoy --no-headers
cilium-envoy-fwcqm Running rpi # the second Envoy is back
cilium-envoy-xfkfq Running siriussec
# the original fault, reproduced exactly, from rpi itself:
$ curl -m 15 -w '%{http_code} %{time_total}\n' http://10.10.0.1:8081/ -> 503 4.999340
$ curl -m 15 -w '%{http_code} %{time_total}\n' http://127.0.0.1:8081/ -> 503 5.001838
$ curl -m 6 -w '%{http_code} %{time_total}\n' http://10.10.0.2:8081/ -> 302 0.005733
# ~5 min later, the label alert fires (nothing paged, no user impact):
ALERTS{alertname="GatewayNodeCountNotOne",alertstate="firing"} = 1
$ kubectl label node rpi node-role.kubernetes.io/gateway-
node/rpi unlabeled
$ kubectl get nodes -l node-role.kubernetes.io/gateway=true -o name
node/siriussec
# and 10.10.0.1 is a closed port again (000 in 0.2 ms), 10.10.0.2 still 302/200
```
**Negatives re-proved after the change** **Negatives re-proved after the change**
``` ```