This repository contains Payload Processing plugins that will be connected to an AI Gateway via a pluggable IPP (Inference Payload Processor) framework developed as part of llm-d.
IPP plugins enable custom request/response mutations of both headers and body, allowing advanced capabilities such as promoting the model from a field in the body to a header and routing to a selected endpoint accordingly.
The target cluster must have ExternalModel and ExternalProvider CRDs deployed.
kubectl apply -f config/crd/bases/-
Set
GATEWAY_NAMEandGATEWAY_NAMESPACEvariables. The chart must be installed in the same namespace as the Gateway for the Istio EnvoyFiltertargetRefsto work:export GATEWAY_NAME=maas-default-gateway export GATEWAY_NAMESPACE=openshift-ingress
-
Clean local copy of upstream chart to avoid using stale version:
rm -f ./deploy/payload-processing/charts/payload-processor-*.tgz -
Install
payload-processinghelm chart:helm install payload-processing ./deploy/payload-processing \ --namespace ${GATEWAY_NAMESPACE} \ --dependency-update \ --set upstreamIpp.inferenceGateway.name=${GATEWAY_NAME} \ --set upstreamIpp.provider.istio.envoyFilter.operation=INSERT_AFTER \ --set upstreamIpp.provider.istio.envoyFilter.anchorSubFilter=extensions.istio.io/wasmplugin/${GATEWAY_NAMESPACE}.kuadrant-${GATEWAY_NAME} \ --set upstreamIpp.payloadProcessor.env[0].name=GATEWAY_NAME \ --set upstreamIpp.payloadProcessor.env[0].value=${GATEWAY_NAME} \ --set upstreamIpp.payloadProcessor.env[1].name=GATEWAY_NAMESPACE \ --set upstreamIpp.payloadProcessor.env[1].value=${GATEWAY_NAMESPACE}
Important: The payload processing ext proc is attached to a Gateway. As a mandatory requirement,
--namespacemust match the namespace where the Gateway resource lives.The
GATEWAY_NAMEandGATEWAY_NAMESPACEenvironment variables are used by the controller reconcilers to set the correct parent ref on HTTPRoutes created for ExternalModel CRs.
-
Uninstall
payload-processinghelm chart:helm uninstall payload-processing --namespace ${GATEWAY_NAMESPACE} -
Delete the CRDs (optionally):
kubectl delete -f config/crd/bases/