How openeverest/provider-kserve works
Purpose and Runtime Entry Point
This Go provider is an OpenEverest extension that translates technology-agnostic Instance CRs into KServe resources. It watches only Instances referring to provider-kserve; KServe controllers, not this provider, create and operate workloads. The executable entry point is cmd/provider/main.go; provider lifecycle implementation is under internal/provider/provider.go.
Provider Contract and Reconciliation Boundary
The provider SDK invokes validation, sync, status, and cleanup for matching Instances. Reconciliation creates/updates provider-owned KServe and supporting Kubernetes CRs, then derives health and connection information back into Instance.status. It deliberately does not manage Pods, Deployments, HPAs, or model storage directly.
• internal/provider/provider.go
• internal/provider/inferenceservice.go
• internal/common/apply.go
Declarative Provider API
Provider identity, supported component types, topology schemas, UI-facing metadata, and version bundles are defined declaratively, then generated into the installed Provider specification. Two non-default topologies are supported: llm and predictor.
• definition/provider.yaml
• definition/topologies/llm/topology.yaml
• definition/versions.yaml
LLM Translation Path
For llm Instances, the provider maps the llmEngine component and topology parameters to KServe LLMInferenceService resources. It composes model URI, vLLM parallelism, resource guarantees, compute profiles, optional inline LLMInferenceServiceConfig, LoRA validation/catalog data, and KServe config references. Inline configs are owned by the Instance and applied after shared/preset references.
• internal/provider/llminferenceservice.go
• definition/topologies/llm/types.go
• internal/common/lora_catalog.go
Predictor Translation Path
For predictor Instances, the provider creates KServe InferenceService resources in Standard deployment mode. Model format/storage URI select or pin KServe serving runtimes; replica and resource settings become predictor configuration. Runtime selection and actual Deployment/HPA lifecycle remain KServe responsibilities.
• internal/provider/inferenceservice.go
• definition/topologies/predictor/types.go
• definition/components/types.go
Access, Gateway, and Observability Resources
LLM reconciliation may create provider-owned exposure resources: LoadBalancer/NodePort Services, Envoy AI Gateway routes, and optional token-quota policy wiring. It can also create a per-instance Prometheus PodMonitor; absence of monitoring CRDs is handled safely. Gateway routing and direct KServe access are separate paths.
• internal/provider/aigateway.go
• internal/provider/podmonitor.go
• charts/provider-kserve/templates/ai-gateway.yaml
Installation Stack and External Dependencies
The Helm chart deploys the provider Deployment/RBAC/Provider CR and bundles KServe controller dependencies, KServe CRDs, runtime configs, and LLM presets. KServe runs in Standard mode. cert-manager is required for KServe admission-webhook certificates. Optional Envoy AI Gateway depends on external LoadBalancer provisioning; quotas require a Redis/Valkey-compatible backend. Models are fetched by KServe from hf://, s3://, gs://, or pvc:// URIs.
• charts/provider-kserve/Chart.yaml
• charts/provider-kserve/templates/deployment.yaml
• charts/provider-kserve/files/llmisvcconfigs/resources.yaml
Generated Assets and Development Environment
gen.go and the Makefile produce the provider spec, RBAC, chart-generated files, vendored presets, and dependency synchronization. Local development runs against Kubernetes, commonly k3d, through Tilt; production packaging is a Helm OCI chart published through GitHub workflows.
• gen.go
• config/rbac/role.yaml
• dev/Tiltfile
Main entry points: provider.go Provider lifecycle · apply.go Owned resource apply · llminferenceservice.go LLM translator · aigateway.go Gateway exposure
Components 21
Provider runtime
Translates matching OpenEverest Instances into KServe CRs.
- Provider executable
cmd/provider/main.go - Provider lifecycle · Validates, syncs, reports status, and cleans up matching Instances.
internal/provider/provider.go - Owned resource apply
internal/common/apply.go - Instance status
Provider API
Declarative identity, schemas, and version metadata.
- Provider definition · Defines identity, component support, metadata, and generated specification.
definition/provider.yaml - LLM topology schema
definition/topologies/llm/topology.yaml - Version bundles
definition/versions.yaml
Topology translation
Topology-specific KServe resource construction.
- LLM translator · Builds model, vLLM, resources, config, and LoRA inputs.
internal/provider/llminferenceservice.go - LoRA catalog
internal/common/lora_catalog.go - Predictor translator · Maps model and replica settings to Standard-mode predictors.
internal/provider/inferenceservice.go - Gateway exposure · Optional direct Services, routes, and token-quota wiring.
internal/provider/aigateway.go - PodMonitor · Optional per-instance monitoring when its CRD exists.
internal/provider/podmonitor.go
Installation and delivery
Helm installation, generation, and local development.
- Helm chart · Deploys provider, RBAC, Provider CR, KServe dependencies, configs, and presets.
charts/provider-kserve/Chart.yaml - Generation pipeline · Produces spec, RBAC, chart files, presets, and synchronized dependencies.
gen.go - Local development
dev/Tiltfile
Platform dependencies
Controllers and optional services operated outside the provider.
- OpenEverest Instance · Only Instances referring to provider-kserve are reconciled.
- KServe resources · Provider-owned CRs consumed by KServe controllers.
- KServe controllers · Creates and operates serving workloads in Standard mode.
- Model storage · KServe fetches hf, S3, GCS, or PVC models.
- Envoy AI Gateway · Requires external LoadBalancer provisioning.
- Redis or Valkey
Connections 23
- Provider executable → Provider lifecycle: starts
- OpenEverest Instance → Provider lifecycle: SDK invokes for matching provider
- Provider lifecycle → LLM translator: llm topology
- Provider lifecycle → Predictor translator: predictor topology
- Provider lifecycle → Instance status: derives health and connection
- LLM translator → LoRA catalog: validates LoRA
- LLM translator → Owned resource apply: applies owned resources
- Predictor translator → Owned resource apply: applies owned resources
- Gateway exposure → Owned resource apply: applies optional exposure
- PodMonitor → Owned resource apply: applies when CRD exists
- Owned resource apply → KServe resources: creates or updates
- KServe resources → KServe controllers: reconciled by
- KServe controllers → Model storage: fetches models
- LLM translator → Gateway exposure: optional exposure
- Gateway exposure → Envoy AI Gateway: routes through
- Gateway exposure → Redis or Valkey: quota policy backend
- Provider definition → LLM topology schema: declares topology
- Provider definition → Version bundles: uses bundles
- Generation pipeline → Provider definition: generates installed spec
- Generation pipeline → Helm chart: generates packaged assets
- Helm chart → Provider executable: deploys
- Helm chart → KServe controllers: bundles dependencies
- Local development → Helm chart: develops against Kubernetes