Repository navigation
Closed as not planned
Labels
priority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/choreType chore: maintenance, such as a dependency update
Description
Context & Rationale
#734 removed kube-prometheus-stack, and #738 restored Prometheus and Grafana as separate charts. #737/#738 added alias Services named after the removed stack so the CLI's hard-coded lookups kept working. That shim and every lookup it serves are still in place on release/v0.2.24:
- Alias Services.
k8s/monitoring/service-aliases.yaml:23, 42defineskube-prometheus-kube-prome-prometheusandkube-prometheus-grafana. deploy-stack never applies that file, so a fresh cluster has no aliases at all (Related: fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795). configure-urlslooks the alias names up before the realgrafanaandprometheusServices (src/devops_cli/commands/k8s/networking.py:375-380).port-forwardtargetssvc/kube-prometheus-grafanaandsvc/kube-prometheus-kube-prome-prometheus(networking.py:936-939), so it fails on any cluster without the aliases.- The removed chart's name fragment.
prome-prometheusis in_PROXY_TARGETS_INFRA(networking.py:487, with the:483comment) and in_FQDN_TARGETS_INFRA(:687). At:687it is the only pattern forprometheus.url's ingress lookup. It can never match the Prometheus ingress, whose backend isprometheusand whose host isprometheus.<domain>(k8s/ingress/ingress-routes.yaml:155, 162), soconfigure-urlsnever uses Prometheus's FQDN. - Grafana password.
fetch_grafana_passwordtries the secretkube-prometheus-stack-grafanafirst (src/devops_cli/k8s/credentials.py:170). Thegrafanarelease createsgrafana. - Docs and tests. The
src/devops_cli/k8s/service_proxy.py:314docstring, the fixtures and docstrings intests/test_k8s_proxy_addressing.py:45-68("Prometheus ships askube-prometheus-kube-prome-prometheus") andtests/test_k8s_bootstrap.py:352-353. - The
prometheusalias in the same file is still needed: Grafana's datasource and Alloy use it (k8s/monitoring/grafana-values.yaml:43;k8s/monitoring/k8s-monitoring-values.yaml:12).
CLAUDE.md requires the codebase to stay clean of legacy references and obsolete shims.
Scope & Deliverables
- Deliverable:
- Remove the two kube-prometheus aliases and the fallback lookups in
configure-urls. - Point
port-forwardat the Services deploy-stack creates:grafana, and the Prometheus server Service (or the keptprometheusalias). - Replace the
prome-prometheusfragment atnetworking.py:487and:687with patterns that match the deployed Prometheus Service and ingress. - Drop
kube-prometheus-stack-grafanafromfetch_grafana_password's candidates. - Rename the test fixtures and fix the docstrings to the Service names the current charts create.
- Keep the
prometheusalias.
- Remove the two kube-prometheus aliases and the fallback lookups in
- Acceptance criteria:
rg -n 'kube-prometheus|prome-prometheus' k8s src testsfinds only the upstream dotdc dashboard descriptions.configure-urlstests resolve thegrafanaandprometheusServices.- A
configure-urlstest with a Prometheus ingress whose backend isprometheussetsprometheus.urlto that ingress's host. - A
fetch_grafana_passwordtest finds the password in thegrafanasecret. - A
port-forwardtest targetssvc/grafanaand the Prometheus server Service. - Tests never touch the network or a cluster.
uv run devops cipasses.
- Constraint: The upstream text "Made for kube-prometheus-stack" in the dotdc dashboard descriptions stays. CHANGELOG history is not rewritten.
Strategic Alignment
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/choreType chore: maintenance, such as a dependency update
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 3, 2026
Merged into #1104: both remove the alias Services in
k8s/monitoring/service-aliases.yaml. #1104 now deletes the whole file, repoints every consumer of theprometheusalias to the chart'sprometheus-serverService, carries this item's criteria, and adds the monitoring audit's widening (the TLS SAN and ingress backend, noserver.fullnameOverride, and the one-time deletion of the kube-prometheus-stack leftovers). #1104 is a child of #1128.