Skip to content

draft changes in run-kind #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/components/inference-gateway/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: endpoint-picker
containers:
- name: endpoint-picker
image: inference-router/router-ext-proc:latest
image: quay.io/vllm-d/gateway-api-inference-extension/epp:0.0.1
args:
- "--config-file"
- "/etc/endpoint-picker/config.yaml"
Expand Down
28 changes: 22 additions & 6 deletions scripts/run-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@ set -eo pipefail
# Variables
# ------------------------------------------------------------------------------

# TODO: get image names, paths, versions, etc. from the .version.json file
# See: https://github.com/neuralmagic/gateway-api-inference-extension/issues/28

# Set a default CLUSTER_NAME if not provided
: "${CLUSTER_NAME:=inference-gateway}"

# Set the default IMAGE_REGISTRY if not provided
: "${IMAGE_REGISTRY:=quay.io/vllm-d}"

# Set a default VLLM_SIMULATOR_VERSION if not provided
: "${VLLM_SIMULATOR_VERSION:=0.0.2}"

# Set a default ENDPOINT_PICKER_VERSION if not provided
: "${ENDPOINT_PICKER_VERSION:=0.0.1}"

# Set a default ENDPOINT_PICKER_IMAGE if not provided
: "${ENDPOINT_PICKER_IMAGE:=gateway-api-inference-extension/epp}"

# ------------------------------------------------------------------------------
# Setup & Requirement Checks
# ------------------------------------------------------------------------------
Expand All @@ -46,6 +55,13 @@ for cmd in kind kubectl ${CONTAINER_RUNTIME}; do
fi
done

# @TODO Make sure the EPP and vllm-sim images are present or built
# EPP: `make image-load` in the GIE repo
# vllm-sim: ``
# note: you may need to retag the built images to match the expected path and
# versions listed above
# See: https://github.com/neuralmagic/gateway-api-inference-extension/issues/28

# ------------------------------------------------------------------------------
# Cluster Deployment
# ------------------------------------------------------------------------------
Expand All @@ -72,18 +88,18 @@ kubectl --context ${KUBE_CONTEXT} -n local-path-storage wait --for=condition=Rea

# Load the vllm simulator image into the cluster
if [ "${CONTAINER_RUNTIME}" == "podman" ]; then
podman tag localhost/vllm-sim/vllm-sim:${VLLM_SIMULATOR_VERSION} docker.io/vllm-sim/vllm-sim:${VLLM_SIMULATOR_VERSION}
podman save docker.io/vllm-sim/vllm-sim:${VLLM_SIMULATOR_VERSION} -o /dev/stdout | kind --name ${CLUSTER_NAME} load image-archive /dev/stdin
podman tag localhost/vllm-d/vllm-sim:${VLLM_SIMULATOR_VERSION} ${IMAGE_REGISTRY}/vllm-sim:${VLLM_SIMULATOR_VERSION}
podman save ${IMAGE_REGISTRY}/vllm-sim:${VLLM_SIMULATOR_VERSION} -o /dev/stdout | kind --name ${CLUSTER_NAME} load image-archive /dev/stdin
else
kind --name ${CLUSTER_NAME} load docker-image vllm-sim/vllm-sim:${VLLM_SIMULATOR_VERSION}
kind --name ${CLUSTER_NAME} load docker-image ${IMAGE_REGISTRY}/vllm-sim:${VLLM_SIMULATOR_VERSION}
fi

# Load the ext_proc endpoint-picker image into the cluster
if [ "${CONTAINER_RUNTIME}" == "podman" ]; then
podman tag localhost/inference-router/router-ext-proc:${ENDPOINT_PICKER_VERSION} docker.io/inference-router/router-ext-proc:${ENDPOINT_PICKER_VERSION}
podman save docker.io/inference-router/router-ext-proc:${ENDPOINT_PICKER_VERSION} -o /dev/stdout | kind --name ${CLUSTER_NAME} load image-archive /dev/stdin
podman tag localhost/${ENDPOINT_PICKER_IMAGE}:${ENDPOINT_PICKER_VERSION} ${IMAGE_REGISTRY}/${ENDPOINT_PICKER_IMAGE}:${ENDPOINT_PICKER_VERSION}
podman save ${IMAGE_REGISTRY}/${ENDPOINT_PICKER_IMAGE}:${ENDPOINT_PICKER_VERSION} -o /dev/stdout | kind --name ${CLUSTER_NAME} load image-archive /dev/stdin
else
kind --name ${CLUSTER_NAME} load docker-image inference-router/router-ext-proc:${ENDPOINT_PICKER_VERSION}
kind --name ${CLUSTER_NAME} load docker-image ${IMAGE_REGISTRY}/${ENDPOINT_PICKER_IMAGE}:${ENDPOINT_PICKER_VERSION}
fi

# ------------------------------------------------------------------------------
Expand Down