From e6741a9198757530e5bb8de20172ab7a10ba087c Mon Sep 17 00:00:00 2001 From: Igor Kvachenok Date: Wed, 18 Mar 2026 17:51:42 +0100 Subject: [PATCH] Replace placeholder image in custom KServe predictor manifest Build the minimal-custom-kserve-predictor image, push it to the prokube registry, and replace the placeholder in inference-service.yaml with the actual image path (with a REPLACE ME comment for external users). Also add a GitLab CI job to keep the image up to date on changes. --- .gitlab-ci.yml | 14 ++++++++++++++ .../inference-service.yaml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38845c0..f7ebb18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,3 +52,17 @@ mnsist-katib-build: rules: - changes: - images/minimal-mnist/**/* + +minimal-custom-kserve-predictor-build: + stage: build-image + script: + - > + /kaniko/executor + --context "${CI_PROJECT_DIR}/serving/minimal-custom-kserve-predictor/" + --dockerfile "${CI_PROJECT_DIR}/serving/minimal-custom-kserve-predictor/Dockerfile" + --destination "${CI_REGISTRY}/${CI_PROJECT_PATH}/minimal-custom-kserve-predictor:latest" + --destination "${CI_REGISTRY}/${CI_PROJECT_PATH}/minimal-custom-kserve-predictor:${CI_COMMIT_SHORT_SHA}" + + rules: + - changes: + - serving/minimal-custom-kserve-predictor/**/* diff --git a/serving/minimal-custom-kserve-predictor/inference-service.yaml b/serving/minimal-custom-kserve-predictor/inference-service.yaml index 5f5bdc3..dbdf3c3 100644 --- a/serving/minimal-custom-kserve-predictor/inference-service.yaml +++ b/serving/minimal-custom-kserve-predictor/inference-service.yaml @@ -6,7 +6,7 @@ spec: predictor: containers: - name: kserve-container - image: + image: europe-west3-docker.pkg.dev/prokube-internal/prokube-customer/minimal-custom-kserve-predictor:latest # REPLACE ME if you don't have access to the prokube registry env: - name: MODEL_NAME value: "capitalizer"