Architecture & Design
Overview
Toolkit Manager is a modular, extensible deployment framework for a self-hosted Kubernetes cluster, LLM inference serving stack, and opt-in applications — deployable on-premises, air-gapped, or in a private cloud.
This repository provides:
- Infrastructure layer - Kubernetes (via Kubespray), storage (local-path, NFS, Ceph or NetApp ONTAP via Trident)
- Platform layer — Cert-manager, Istio (ambient), MetalLB, Envoy Gateway, PostgreSQL, Keycloak, Object Store (SeaweedFS), Observability
- Multi-environment support — Isolated configs under
env/<name>/ - Cross-repo orchestration — Auto-discovers and integrates external solution repos
External solution repositories (e.g., enterprise-inference, enterprise-rag) contribute additional layers:
- Inference layer — KServe, LiteLLM (proxy + virtual keys), Langfuse (observability), LLM services, Envoy AI Gateway, NRI CPU balloons
- Application layer — RAG pipelines, UI, vector databases (opt-in)
Auth modes: Keycloak is always deployed and people sign in through it. auth_type in env/<name>/config.inference.yaml selects the credential API clients send:
jwt(default) — Keycloak JWT (client credentials) on the inference endpoint; LiteLLM + Langfuse optional (litellm_enabled: true)litellm_vkey— LiteLLM virtual keys onlitellm.<domain>; LiteLLM validates the key and proxies to the model; Langfuse on unlesslangfuse_enabled: false
The gateway SecurityPolicy is a Keycloak JWT, deny-by-default, in both modes: a route without its own SecurityPolicy needs a Keycloak JWT. Routes that authenticate themselves (UI logins, the LiteLLM API) attach their own policy.
Layer Architecture
Toolkit Manager installs in four ordered layers, each depending on the one before it:
infrastructure → platform → inference → erag (opt-in)
│ │ │ │
kubernetes nri_cpu_balloons envoy_ai_gw app_inference_models
storage cert_manager kserve app_pre_install
istio litellm app_vector_databases
metallb langfuse app_keycloak_config
envoy_gateway keycloak_cfg app_apisix
postgresql llm_services app_chat_history
keycloak* app_nats
object_store app_fingerprint
seaweedfs app_hpa
observability app_pipeline
velero† app_edp
app_mcp_gateway
app_ui
app_watcher
app_post_install
* keycloak is always on (keycloak_enabled defaults true)
† velero is opt-in (velero_enabled) and needs snapshot-capable storage
install inferenceinstalls infrastructure + platform + inference (dependencies auto-pull)install erag(and future layers) must be explicitly targeted- Dependencies are auto-resolved from
components.yamldefinitions
Execution Flow
A single es_auto_installer.sh install invocation is how Toolkit Manager resolves components and dispatches Ansible for every layer:
./es_auto_installer.sh install inference --env local
│
├─ 1. Load environment: env/<name>/global_config.yaml + config.<solution>.yaml
├─ 2. Resolve components: load components.yaml from this repo + ext repos → build active component list
├─ 3. Preflight checks (internet connectivity for non-teardown/validate actions)
├─ 4. Dispatch to playbooks/site.yaml with component_action + target
│
playbooks/site.yaml (universal dispatcher)
│
├─ includes/preflight.yaml:
│ ├─ Load component registry (configs/components.yaml + ext components.yaml)
│ ├─ Resolve component set from target + dependencies
│ └─ Verify kubectl connectivity
│ (solution + global configs are passed as -e @ by the installer)
│
├─ [Infrastructure Layer]
│ └─ role: kubernetes → tasks/{{ component_action }}.yaml
│ ├─ Check for existing cluster (kubectl cluster-info)
│ │ ├─ If existing_kubernetes is set (BYO) → skip install
│ │ ├─ If exists + version OK → skip install
│ │ └─ If not exists ↓
│ ├─ precheck.yaml (swap, kernel modules, sysctl, packages)
│ ├─ install_kubespray.yaml (prep phase):
│ │ ├─ Clone kubespray repo to .kubespray/ (pinned version)
│ │ ├─ Create python venv + install requirements.txt
│ │ ├─ Read inventory from env/<name>/inventory/hosts.yaml
│ │ ├─ Apply kubespray_user_overrides or kubespray_full_config_file
│ │ └─ Exit (3-phase split) → installer runs kubespray/cluster.yml
│ ├─ post_install.yaml (kubeconfig copy, node wait, helm verify)
│ └─ storage, metallb (infrastructure components)
│
├─ [Platform Layer]
│ ├─ role: nri_cpu_balloons → tasks/install.yaml (CPU pinning — only when cpu_policy=nri-balloons)
│ ├─ role: cert_manager → tasks/install.yaml (helm install)
│ ├─ role: istio → tasks/install.yaml (ambient mesh — all workload namespaces enrolled)
│ ├─ role: metallb → tasks/install.yaml (LoadBalancer services)
│ ├─ role: envoy_gateway → tasks/install.yaml (helm install + TLS)
│ ├─ role: postgresql → tasks/install.yaml (CNPG operator + clusters)
│ ├─ role: keycloak → tasks/install.yaml (both auth modes)
│ ├─ role: object_store → tasks/install.yaml (backend selection)
│ ├─ role: seaweedfs → tasks/install.yaml (S3-compatible object storage)
│ └─ role: observability → tasks/install.yaml (prometheus/grafana/loki/tempo)
│
├─ [Inference Layer]
│ ├─ role: keycloak_config → tasks/install.yaml (realm + client — both auth modes)
│ ├─ role: envoy_ai_gateway → tasks/install.yaml (apply manifests)
│ ├─ role: kserve → tasks/install.yaml (CRDs + controller + deploy mode)
│ ├─ role: litellm → tasks/install.yaml (proxy — auth_type=litellm_vkey, or litellm_enabled)
│ ├─ role: langfuse → tasks/install.yaml (observability — with LiteLLM unless langfuse_enabled: false)
│ └─ role: llm_services → tasks/install.yaml (runtimes + default models)
│
└─ [Intel® Chatbot Toolkit] (opt-in, not included by `install inference`)
└─ roles from ext/enterprise.ai-erag (15 components: app_inference_models, app_pre_install,
app_vector_databases, app_keycloak_config, app_apisix, app_chat_history, app_nats,
app_fingerprint, app_hpa, app_pipeline, app_edp, app_mcp_gateway, app_ui, app_watcher,
app_post_install)
Repository Structure
Toolkit Manager spans this repository plus external solution repositories that plug into it.
enterprise-ai-solutions
enterprise-ai-solutions/
├── es_auto_installer.sh # CLI: configure, show, init, install, teardown, validate, status
├── ansible.cfg # Ansible settings + dynamic roles_path
├── .kubespray/ # Kubespray clone
├── ext/ # External repos cloned here
│ └── enterprise.ai-inference/
│ └── config.yaml # Seed for init (copied to env/, not read at install)
├── env/ # Per-environment configs + state
│ └── local/ # Example environment
│ ├── global_config.yaml # Main config (components, TLS, proxy)
│ ├── inventory/
│ │ └── hosts.yaml # Kubespray-compatible inventory (YAML)
│ ├── config.erag.yaml # Solution-specific config (if init erag)
│ ├── config.inference.yaml # Solution-specific config
│ ├── kubeconfig.yaml # Generated after cluster install
│ ├── nodes.yaml # Optional: MetalLB ranges, NFS overrides
│ └── logs/ # Per-run logs
├── inventory/
│ └── hosts.yaml # Template (copied by init) + ansible.cfg default
├── playbooks/
│ ├── site.yaml # Universal dispatcher (all actions)
│ ├── includes/
│ │ ├── preflight.yaml # Component resolution + connectivity
│ │ └── run_component.yaml # Per-component dispatch loop
│ └── status.yaml # Cluster status reporting
└── roles/
├── kubernetes/
│ ├── meta/main.yaml
│ ├── defaults/main.yaml # K8s version, kubespray, networking
│ ├── files/
│ │ └── generate_reserved_cpus.sh # NUMA detection script
│ └── tasks/
│ ├── main.yaml # Action dispatcher
│ ├── install.yaml # Detect existing or install fresh
│ ├── precheck.yaml # System prerequisites
│ ├── install_kubespray.yaml # Prep phase (3-phase split)
│ ├── post_install.yaml # Kubeconfig copy + health checks
│ ├── teardown.yaml # Kubespray reset + cleanup
│ └── validate.yaml # Health checks + version report
├── storage/ # Storage engine (registry + resolver + meta-role)
│ ├── defaults/main.yaml # storage_backend selector + storage_backends registry
│ └── tasks/
│ ├── resolve.yaml # selector → _resolved_storage_role (run in preflight)
│ └── main.yaml # meta-role: include_role the resolved backend
├── nfs_storage/ # Backend: NFS server + provisioner (RWX)
│ └── tasks/
│ ├── install.yaml
│ └── teardown.yaml
├── rook_ceph_storage/ # Backend: Ceph via Rook (multi-node block storage)
│ └── tasks/
│ ├── install.yaml
│ └── teardown.yaml
├── netapp_trident_csi/ # Backend: NetApp Trident + ONTAP (see docs/deploy/netapp_ontap.md)
│ └── tasks/
│ ├── validate_config.yaml # Offline: variable-level checks, no cluster, no array
│ ├── preflight_nodes.yaml # Per-node: NFS client packages, mount helper, LIF names
│ ├── preflight_ontap.yaml # Array: TCP probes (ontap_preflight_online)
│ ├── install.yaml
│ ├── validate.yaml + validate_e2e.yaml
├── metallb/
│ └── tasks/
│ ├── install.yaml # MetalLB for LoadBalancer services
│ └── teardown.yaml
├── cert_manager/
│ └── tasks/
│ ├── install.yaml # Helm install cert-manager
│ └── teardown.yaml
├── istio/
│ └── tasks/
│ ├── install.yaml # Istio ambient mesh (ztunnel + waypoint)
│ └── teardown.yaml
├── envoy_gateway/
│ └── tasks/
│ ├── install.yaml # Helm install + TLS config
│ └── teardown.yaml
├── postgresql/
│ └── tasks/
│ ├── install.yaml # CNPG operator + database clusters
│ └── teardown.yaml
├── keycloak/
│ └── tasks/
│ ├── install.yaml # Keycloak (both auth modes)
│ └── teardown.yaml
├── object_store/
│ └── tasks/
│ └── install.yaml # Backend selector (seaweedfs/rustfs)
├── seaweedfs/
│ └── tasks/
│ ├── install.yaml # S3-compatible object storage
│ └── teardown.yaml
├── observability/
│ └── tasks/
│ ├── install.yaml # Prometheus + Grafana + Loki + Tempo
│ └── teardown.yaml
└── nri_cpu_balloons/
└── tasks/
├── install.yaml # NRI plugin + per-node BalloonsPolicy CRs
└── teardown.yaml
enterprise-inference (external repo)
enterprise-inference/
├── config.yaml # Seed for init (copied to env/config.inference.yaml)
├── model_manager/ # Model lifecycle CLI
│ ├── model-manager # Entry point (resolves env/ models.yaml)
│ ├── models.yaml # Default model catalog (seeded to env/)
│ ├── default-models.yaml # Models deployed at initial install
│ └── scripts/ # deploy, undeploy, litellm register, etc.
└── roles/
├── envoy_ai_gateway/
│ └── tasks/
│ ├── install.yaml # Envoy AI Gateway manifests
│ └── teardown.yaml
├── keycloak_config/
│ └── tasks/
│ ├── install.yaml # Realm + client (both auth modes)
│ └── teardown.yaml
├── kserve/
│ ├── defaults/main.yaml
│ └── tasks/
│ ├── install.yaml # KServe CRDs + controller + deploy mode
│ ├── teardown.yaml
│ └── validate.yaml
├── litellm/
│ ├── defaults/main.yaml # Version, sizing, cache, gateway integration
│ └── tasks/
│ ├── install.yaml # Helm deploy + HTTPRoute + own SecurityPolicy
│ ├── tls.yaml # Certificate provisioning
│ ├── teardown.yaml
│ └── validate.yaml
├── langfuse/
│ ├── defaults/main.yaml
│ └── tasks/
│ ├── install.yaml # Observability for LLM calls (traces, cost)
│ └── teardown.yaml
└── llm_services/
├── defaults/main.yaml
├── files/
│ └── runtimes/
│ └── vllm-runtime.yaml # vLLM ServingRuntime (auto-deployed)
└── tasks/
├── install.yaml # Namespace + runtimes + LLMInferenceService CRDs
├── deploy_models.yaml # Deploys default-models.yaml (initial install only)
├── teardown.yaml
└── validate.yaml
Key Design Patterns
These patterns are what let Toolkit Manager stay modular — new components, repos, and actions plug in without touching the dispatcher.
Action Dispatch
Every component role's tasks/main.yaml is the same dispatcher (Roles).
The component_action variable is passed as an extra-var from the CLI to playbooks/site.yaml:
install→ tasks/install.yamlteardown→ tasks/teardown.yamlvalidate→ tasks/validate.yaml
The dispatcher first loads vars/<cluster_distribution>.yaml, if the role has one; the task
files are the same on Kubernetes and OpenShift and take what differs from those values.
This means adding a new action (e.g., upgrade) only requires adding CLI support and a new tasks/upgrade.yaml in each role.
Cross-Repo Role Discovery
External repos are declared in per-layer manifests at configs/repos/repos.<layer>.yaml and cloned under ext/<dest>/ on first run. For example, configs/repos/repos.erag.yaml declares both the inference and Intel® Chatbot Toolkit repositories needed for that layer. Each entry may set deployment_subdir to locate the Ansible tree inside the repo:
repos:
- layer: "inference"
url: "https://github.com/intel/enterprise-inference"
dest: "enterprise.ai-inference"
deployment_subdir: "" # roles/, components.yaml, config.yaml at repo root
- layer: "erag"
url: "https://github.com/intel/enterprise-rag"
dest: "enterprise.ai-erag"
deployment_subdir: "deployment" # Ansible tree lives under deployment/
The installer composes ANSIBLE_ROLES_PATH at runtime by joining roles:ext/<dest>/<deployment_subdir>/roles for every repo, then appending the Kubespray roles. The committed ansible.cfg roles_path value is overridden by this env var, so the file stays stable across runs.
Solution configs are consumed from the env only. init <layer> seeds env/<name>/config.<layer>.yaml from the ext repo's config.yaml baseline (or from a flavour preset if --flavour is given); install reads that editable copy and never re-reads ext/<repo>/config.yaml at runtime. A layer is active for a run if env/<name>/.solutions.yaml records it (written by init <layer>).
Variable Precedence
CLI: -e kserve_version=0.15.0 ← highest (runtime override)
↓
env/<name>/global_config.yaml ← environment global overrides
↓
env/<name>/config.<solution>.yaml ← solution config (seeded by init)
↓
roles/<name>/defaults/main.yaml ← role defaults (lowest)
Config files are loaded and passed as extra-vars. This uses native Ansible variable precedence. No custom config merging. The ext repo config.yaml is a seed source for init, not a load-time layer for install.
Component Resolution and Layers
Components are defined in components.yaml files (this repo + ext repos). Each component specifies:
layer(infrastructure, platform, inference, application)- Position in the YAML list (registry order — determines execution sequence within layer)
depends_on(same-layer dependencies, auto-pulled when component is targeted)
Four layers (executed in order):
| Layer | Components | Installation |
|---|---|---|
| infrastructure | kubernetes, storage | Auto-pulled by install inference or install erag |
| platform | nri_cpu_balloons***, cert_manager, istio, metallb, envoy_gateway, postgresql, keycloak*, object_store, seaweedfs, observability | Auto-pulled by install inference or install erag |
| inference | keycloak_config*, envoy_ai_gateway, kserve, litellm**, langfuse**, llm_services | install inference (explicitly named, or auto-pulled by install erag) |
| erag | app_inference_models, app_pre_install, app_vector_databases, app_keycloak_config, app_apisix, app_chat_history, app_nats, app_fingerprint, app_hpa, app_pipeline, app_edp, app_mcp_gateway, app_ui, app_watcher, app_post_install | install erag (opt-in, requires init erag first) |
* Keycloak + keycloak_config run in both auth modes (keycloak_enabled defaults true)
** LiteLLM is always on with auth_type=litellm_vkey, optional with jwt (litellm_enabled: true); Langfuse follows LiteLLM unless langfuse_enabled: false
*** NRI CPU balloons enabled when kubernetes_cpu_policy=nri-balloons and kubernetes_accelerator=cpu
The erag layer must be explicitly targeted: install erag --env <name>. See ../../ext/enterprise.ai-erag/docs/README.md (exists after init erag clones the repo) for RAG-layer documentation.
Component resolution happens in playbooks/includes/preflight.yaml:
- Load all
components.yamlfiles (this repo + ext repos) - Resolve target (e.g.,
kserve→ includes dependencies likecert_manager,kubernetes) - Sort by layer order, then component order
- Pass resolved list to
site.yaml
Environment Workflow
Each environment is fully isolated under env/<name>/:
# Initialize new environment (seeds config + inventory template)
./es_auto_installer.sh init inference --env prod
# Edit config and inventory
vim env/prod/global_config.yaml
vim env/prod/inventory/hosts.yaml
# Deploy to that environment
./es_auto_installer.sh install inference --env prod
Environment state:
env/<name>/kubeconfig.yaml— generated after cluster installenv/<name>/logs/— per-run Ansible logs (timestamped)env/<name>/.solutions.yaml— records which layers this env was inited for (written byinit <layer>)
Multiple environments on one bastion: Each environment uses its own inventory and kubeconfig, so you can manage dev/staging/prod from a single machine.
Auto-Discovery of Models and Runtimes
The llm_services role uses ansible.builtin.find to auto-discover all YAML files in its files/catalog/ and files/runtimes/ directories. To deploy a new model or runtime, drop a YAML file — no code changes needed.
Kubernetes Installation
The kubernetes role uses Kubespray (kubernetes-sigs/kubespray) to install upstream Kubernetes.
| Variable | Default | Purpose |
|---|---|---|
kubernetes_version | (set in global_config.yaml) | Kubernetes release |
kubespray_version | (set in global_config.yaml) | Pinned Kubespray tag |
kubernetes_cni | calico | CNI plugin |
kubernetes_container_manager | containerd | Container runtime |
existing_kubernetes | "" | Set to absolute path of a BYO kubeconfig to skip Kubespray entirely |
Which cluster the installer acts on: es_auto_installer.sh doesn't support KUBECONFIG (or ~/.kube/config) for selecting the cluster. It uses only:
existing_kubernetes: /path/to/kubeconfiginglobal_config.yaml, for a cluster you bring (Kubespray is skipped)env/<name>/kubeconfig.yaml, for the managed cluster. Ifkubectl cluster-infosucceeds with it, provisioning is skipped. To reprovision, tear downkubernetesand install again.
Kubespray override model (layered):
- Kubespray installer base defaults
kubespray_user_overrides(dict of individual overrides likekube_version,kube_network_plugin)kubespray_full_config_file(path to complete group_vars file, takes precedence over user_overrides)
Deployment Topologies
The kubernetes role supports two deployment modes, derived entirely from the inventory content in env/<name>/inventory/hosts.yaml:
1. Localhost Installation (default)
When the inventory contains only localhost hosts, Kubespray installs on this machine. Edit env/<name>/inventory/hosts.yaml:
# Option A — Localhost (uncommented by default in init)
all:
hosts:
localhost:
ansible_connection: local
children:
kube_control_plane:
hosts:
localhost:
kube_node:
hosts:
localhost:
etcd:
hosts:
localhost:
./es_auto_installer.sh install inference --env local
2. Remote Installation (SSH-based)
When the inventory contains remote hosts, Kubespray installs over SSH. Edit env/<name>/inventory/hosts.yaml:
# Option C — Multi-node cluster
all:
hosts:
master1:
ansible_host: 10.0.1.10
ansible_user: ubuntu
worker1:
ansible_host: 10.0.1.20
ansible_user: ubuntu
worker2:
ansible_host: 10.0.1.21
ansible_user: ubuntu
children:
kube_control_plane:
hosts:
master1:
kube_node:
hosts:
worker1:
worker2:
etcd:
hosts:
master1:
./es_auto_installer.sh install inference --env prod
3. Existing Kubernetes Cluster (skip Kubespray)
To deploy components on an existing cluster without running Kubespray, set existing_kubernetes: /path/to/kubeconfig in env/<name>/global_config.yaml. The installer uses this kubeconfig directly — no need to copy it into the env dir.
Running from a Bastion Node
When the Ansible controller (bastion) is not part of the cluster and reaches nodes via SSH, configure the inventory with bastion settings:
# env/<name>/inventory/hosts.yaml
all:
hosts:
master1:
ansible_host: 10.0.1.10
ansible_user: ubuntu
worker1:
ansible_host: 10.0.1.20
ansible_user: ubuntu
vars:
# Optional: if nodes are behind a jump host
ansible_ssh_common_args: '-o ProxyJump=jumpuser@10.0.0.5:22'
children:
kube_control_plane:
hosts:
master1:
kube_node:
hosts:
worker1:
etcd:
hosts:
master1:
Behind proxy (in env/<name>/global_config.yaml):
http_proxy: "http://proxy:8080"
https_proxy: "http://proxy:8080"
File-by-File Reference
A file-level map of this repository and the external inference repo it composes with.
enterprise-ai-solutions — Top Level
| File | Purpose |
|---|---|
es_auto_installer.sh | CLI wrapper. Actions: configure, show, init <layer>, install, teardown, validate, status. Flags: --env <name>, --flavour <name> (init only), --upgrade (init only), --only (skip dep auto-inclusion), --skip <names> (comma-separated layers/components to exclude), --force (skip confirmation), -- (pass remaining args to ansible-playbook). |
ansible.cfg | Ansible configuration. roles_path is overridden at runtime by composed ANSIBLE_ROLES_PATH. Uses default stdout callback with yaml result format, timer + profile_tasks callbacks. |
env/<name>/global_config.yaml | Main config for environment: component versions, TLS settings, proxy, auth. Overrides ext repo and role defaults. Single place to change versions per environment. |
env/<name>/inventory/hosts.yaml | Kubespray-compatible inventory. Defines control-plane, workers, etcd groups. Copied from inventory/hosts.yaml by init. |
inventory/hosts.yaml | Inventory template with three options (localhost, single remote, multi-node). Used by init to seed new environments and as ansible.cfg default. |
enterprise-ai-solutions — Playbooks
| File | Purpose |
|---|---|
playbooks/site.yaml | Universal dispatcher. Accepts component_action (install/teardown/validate) and target as extra-vars. Includes preflight.yaml, then runs resolved components with the specified action. |
playbooks/includes/preflight.yaml | Component resolution logic. Loads ext repo configs, merges env-specific configs, resolves component dependencies, sorts by layer and registry order. Also verifies kubectl connectivity for non-teardown/validate actions. |
playbooks/status.yaml | Cluster status reporting — shows installed namespaces, pods, helm releases, and endpoints. |
enterprise-ai-solutions — Roles
kubernetes
| File | Purpose |
|---|---|
defaults/main.yaml | Kubernetes version, Kubespray version/repo, networking CIDRs, CNI (calico), container runtime, kubeconfig path, proxy settings. Version set per environment in global_config.yaml. |
files/generate_reserved_cpus.sh | CPU pinning script. Delegated to first control-plane node for accurate NUMA detection. |
tasks/main.yaml | The canonical dispatcher: runs {{ component_action }}.yaml |
tasks/install.yaml | Smart entry point: detects existing cluster (kubectl + kubeconfig), checks existing_kubernetes (BYO path), skips if cluster exists and version OK, otherwise runs precheck → install_kubespray (prep) → (installer runs cluster.yml) → post_install |
tasks/precheck.yaml | System prerequisites: OS check (Linux), swap disable, kernel modules (br_netfilter, overlay), sysctl (ip_forward, bridge-nf-call-iptables), required packages (curl, tar, git, python3-pip, python3-venv, sshpass) |
tasks/install_kubespray.yaml | Prep phase only (3-phase split): Clones Kubespray to .kubespray/, creates Python venv, reads inventory from env/<name>/inventory/hosts.yaml, applies kubespray_user_overrides or kubespray_full_config_file, then exits. Installer runs cluster.yml directly for live output. |
tasks/post_install.yaml | Post-kubespray phase: Copies kubeconfig from first control-plane node to env/<name>/kubeconfig.yaml, waits for nodes ready, verifies helm, prints cluster summary. |
tasks/teardown.yaml | Runs Kubespray reset.yml via 3-phase split (prep → installer runs reset → cleanup), removes kubeconfig |
tasks/validate.yaml | Checks kubectl, kubeconfig exists, cluster reachable, node status, server version, summary report |
Other platform roles
All roles follow the same pattern: defaults/main.yaml for config, tasks/main.yaml for dispatch, action-specific task files.
| Role | Purpose |
|---|---|
storage | Storage engine. defaults/main.yaml holds the storage_backend selector + storage_backends registry; resolve.yaml (run in preflight) normalizes the selector into _resolved_storage_backend, maps it to a backend role, rejects local-path on multi-node clusters and validates the ONTAP values; the meta-role include_roles the resolved role. Adding a backend = registry row + a role. |
nfs_storage | Storage backend: NFS server + NFS provisioner for ReadWriteMany volumes. Marks its SC cluster-default. Flat vars (nfs_*), idempotent. |
rook_ceph_storage | Storage backend: Rook/Ceph cluster on raw block devices. CephFS provides ReadWriteMany; teardown device wiping is opt-in (rook_ceph_teardown_wipe_devices). |
netapp_trident_csi | Storage backend: NetApp Trident operator + ONTAP TridentBackendConfig + StorageClass (reclaimPolicy: Retain, volumeBindingMode: Immediate). Splits its tasks by what they need (variables / nodes / array) so everything but the array probes runs offline. See NetApp ONTAP. |
metallb | MetalLB for LoadBalancer services. IP ranges from env/<name>/nodes.yaml or global_config.yaml. |
cert_manager | Helm install cert-manager (prerequisite for KServe, Istio, gateway TLS). |
istio | Istio ambient mesh (1.27.x). All workload namespaces enrolled via istio.io/dataplane-mode: ambient label. Provides zero-trust mTLS without sidecars. |
envoy_gateway | Helm install from OCI registry, waits for deployment rollout, TLS config, deny-by-default Keycloak JWT SecurityPolicy on the gateway. |
postgresql | CNPG operator + PostgreSQL clusters for Keycloak, LiteLLM, Langfuse. |
keycloak | Keycloak operator + instance. Deployed in both auth modes. |
object_store | Selects and configures the object store backend (seaweedfs/rustfs). |
seaweedfs | S3-compatible object storage for Loki, Tempo, Langfuse blob storage. |
observability | Prometheus + Grafana + Loki + Tempo stack. |
nri_cpu_balloons | NRI CPU-balloons plugin. Generates per-node BalloonsPolicy CRs based on NUMA topology. Enabled only when kubernetes_cpu_policy=nri-balloons. |
enterprise-inference — External Repo
External repos live under ext/<dest>/ and are cloned on first run based on per-layer manifests at configs/repos/repos.<layer>.yaml.
| File | Purpose |
|---|---|
config.yaml | Baseline for inference components. Seed source for init (copied to env/<name>/config.inference.yaml); not read at install time. |
components.yaml | Component definitions for this repo (kserve, llm_services, etc.). |
enterprise-inference — Roles
kserve
| File | Purpose |
|---|---|
defaults/main.yaml | kserve_version, kserve_namespace, kserve_deploy_mode, kserve_wait_timeout |
tasks/install.yaml | Installs KServe CRDs + controller, installs built-in serving runtimes, patches deploy mode to RawDeployment |
tasks/teardown.yaml | Deletes KServe cluster resources and CRDs |
tasks/validate.yaml | Asserts InferenceService CRD exists, controller has ready replicas ≥ 1 |
litellm
| File | Purpose |
|---|---|
defaults/main.yaml | Version, namespace, sizing (single/multi-node), cache, gateway integration, TLS |
tasks/install.yaml | Helm deploy LiteLLM proxy + Valkey cache. Creates LiteLLM's HTTPRoute; with auth_type=litellm_vkey attaches a no-auth SecurityPolicy to it (LiteLLM validates virtual keys itself), otherwise the gateway's Keycloak JWT policy applies. |
tasks/tls.yaml | Provisions TLS certificate for the LiteLLM hostname |
tasks/teardown.yaml | Helm uninstall + cleanup namespace |
tasks/validate.yaml | Health check against LiteLLM /health endpoint |
langfuse
| File | Purpose |
|---|---|
defaults/main.yaml | Version, namespace, PostgreSQL + S3 config |
tasks/install.yaml | Deploys Langfuse for LLM observability (traces, cost tracking, prompt management) |
tasks/teardown.yaml | Helm uninstall + cleanup |
keycloak_config
| File | Purpose |
|---|---|
tasks/install.yaml | Creates Keycloak realm inference and client inference-client. Runs in both auth modes. |
tasks/teardown.yaml | Removes realm and client |
llm_services
| File | Purpose |
|---|---|
defaults/main.yaml | llm_services_namespace, runtime + model settings |
tasks/install.yaml | Creates namespace, applies files/runtimes/*.yaml (ServingRuntimes), installs LLMInferenceService CRDs + kserve-runtime-configs |
tasks/deploy_models.yaml | Deploys models from default-models.yaml at initial install. Sets MM_LITELLM_ENABLED=true when auth_type=litellm_vkey for auto-registration. |
tasks/teardown.yaml | Deletes all InferenceServices, ServingRuntimes, and namespace |
tasks/validate.yaml | Lists runtimes and deployed LLM services |
files/runtimes/vllm-runtime.yaml | vLLM ServingRuntime: OpenAI-compatible API server |
CLI Usage
All Toolkit Manager commands run from the repository root:
# One-time machine setup (installs Python 3.11+, yq)
./es_auto_installer.sh configure
# Create a new environment
./es_auto_installer.sh init inference
# Create environment with the Intel® Chatbot Toolkit solution
./es_auto_installer.sh init erag --env myenv
# Create environment with a specific Intel® Chatbot Toolkit pipeline flavour
./es_auto_installer.sh init erag --flavour docsum
# Show available layers and components
./es_auto_installer.sh show
# Install infrastructure + platform + inference (via dependency auto-pull)
./es_auto_installer.sh install inference --env local
# Install specific component (auto-pulls dependencies)
./es_auto_installer.sh install kserve --env local
# Install without dependencies
./es_auto_installer.sh install metallb --only --env local
# Install a layer
./es_auto_installer.sh install platform --env local
# Install opt-in Intel® Chatbot Toolkit
./es_auto_installer.sh install erag --env myenv
# Teardown everything (cluster included)
./es_auto_installer.sh teardown infrastructure --env local
# Teardown specific component
./es_auto_installer.sh teardown keycloak --env local
# Validate health
./es_auto_installer.sh validate inference --env local
# Override a variable at runtime (pass ansible args after --)
./es_auto_installer.sh install kserve --env local -- -e kserve_version=0.15.0
# Single component without dependency auto-inclusion
./es_auto_installer.sh install metallb --only --env local
# Pass additional ansible-playbook flags (verbose mode)
./es_auto_installer.sh install inference --env local -- -vvv
# Work with multiple environments
./es_auto_installer.sh install inference --env dev
./es_auto_installer.sh install inference --env staging
./es_auto_installer.sh install inference --env prod
Version Updates
Every Toolkit Manager component version is pinned in config, not hardcoded — to update one:
Edit one line in
env/<name>/global_config.yaml:yamlenvoy_gateway_version: "1.4.0" # was 1.3.0Re-run:
bash./es_auto_installer.sh install envoy_gateway --only --env <name>
Alternatively, override at runtime without editing files:
./es_auto_installer.sh install envoy_gateway --only --env <name> -- -e envoy_gateway_version=1.4.0
Extensibility
Toolkit Manager is designed to grow without changes to this repo — add roles, repos, models, runtimes, or actions using the patterns below.
Adding a New Role
Create the role directory under either repo's
roles/:textroles/my_component/ ├── meta/main.yaml ├── defaults/main.yaml └── tasks/ ├── main.yaml # include_tasks: "{{ component_action }}.yaml" ├── install.yaml ├── teardown.yaml └── validate.yamlAdd an entry to
components.yaml(here or in an ext repo):yamlcomponents: - name: my_component layer: platform order: 50 enabled: true dependencies: - cert_managerAdd default variables to
roles/my_component/defaults/main.yamland override inenv/<name>/global_config.yamlif needed.
Adding a New Repo
See Adding a Solution for the complete reference on creating a new solution layer with its own external repository. In brief:
- Create
configs/repos/repos.<layer>.yamlin ai-solutions with the repo entries. - In your repo, create
components.yaml,config.yaml, androles/<component>/directories. - Run
./es_auto_installer.sh init <layer>to clone and seed configs.
The installer auto-composes ANSIBLE_ROLES_PATH at runtime to include all ext repo roles.
Moving Roles Between Repos
Just mv the role directory. Ansible resolves roles by name from roles_path — no path coupling.
Adding a New Model (No Code Changes)
Drop a YAML file in the appropriate role's files/catalog/:
ext/enterprise.ai-inference/roles/llm_services/files/catalog/my-new-llm.yaml
The install playbooks auto-discover all files in these directories.
Adding a New Serving Runtime
Drop a YAML file:
ext/enterprise.ai-inference/roles/llm_services/files/runtimes/my-runtime.yaml
Adding a New Action
- Add CLI support in
es_auto_installer.shto accept the new action (e.g.,upgrade) - Pass
component_action: upgradeas an extra-var toplaybooks/site.yaml - Add
tasks/upgrade.yamlto each role that needs it
Safety Features
Toolkit Manager builds these safeguards into every install and teardown run:
| Feature | How |
|---|---|
| Fail-fast | any_errors_fatal: true in ansible.cfg — stops entire run on any failure |
| Idempotent | Tasks use failed_when: ... and 'already exists' not in stderr patterns |
| Dry-run | Pass -- --check to forward Ansible's check mode |
| Selective execution | --only flag runs a single target without dependency auto-inclusion |
| Validation | Dedicated validate action with ansible.builtin.assert checks |
| Timing | timer + profile_tasks callbacks show per-task durations |
Related Docs
| If you want to… | Go to |
|---|---|
| Walk through installing the layers described here, step by step | Deployment Guide |
| See how a request actually flows through the gateway and inference layers | Network Architecture |
| Look up every setting that drives this architecture | Configuration Reference |
| Connect your own app or framework to the inference layer | Integration Guide |
| Grow or shrink a cluster after it's already provisioned | Node Scaling |