From 5dee7681708cbc67a7463b7151f45a8b6efd204f Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 26 Jun 2026 23:31:47 +1000 Subject: [PATCH] fix: route /v2 and /health to artifactapi API service (#200) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v3 route migration (#198) split routes into /api → API and / → UI, but /v2/ (Docker Registry V2 API) and /health now hit the UI catch-all instead of the API backend. This breaks `docker pull artifactapi.k8s.syd1.au.unkin.net/...` with context deadline exceeded. Adds /v2 and /health prefix rules before the UI catch-all. Reviewed-on: https://git.unkin.net/unkin/argocd-apps/pulls/200 Co-authored-by: Ben Vincent Co-committed-by: Ben Vincent --- apps/base/artifactapi/httproute.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apps/base/artifactapi/httproute.yaml b/apps/base/artifactapi/httproute.yaml index 0dfae49..1824a55 100644 --- a/apps/base/artifactapi/httproute.yaml +++ b/apps/base/artifactapi/httproute.yaml @@ -47,6 +47,26 @@ spec: - path: type: PathPrefix value: /api + - backendRefs: + - group: "" + kind: Service + name: artifactapi + port: 80 + weight: 1 + matches: + - path: + type: PathPrefix + value: /v2 + - backendRefs: + - group: "" + kind: Service + name: artifactapi + port: 80 + weight: 1 + matches: + - path: + type: PathPrefix + value: /health - backendRefs: - group: "" kind: Service