Skip to content

Commit cf3ed14

Browse files
committed
docs: Document custom image workflow for contrib stores and client ConfigMap
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 398f643 commit cf3ed14

3 files changed

Lines changed: 281 additions & 0 deletions

File tree

‎docs/how-to-guides/feast-operator/02-persistence.md‎

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ For external DB-backed offline stores (BigQuery, Snowflake, Spark, Trino, etc.),
217217
`persistence.store.type` and a Secret with the matching key. See
218218
[Offline Stores](../reference/offline-stores/) in the SDK docs.
219219

220+
> **Important — contrib store drivers require a custom image.**
221+
> The published `quay.io/feastdev/feature-server` image ships with `feast[minimal]`
222+
> (aws, gcp, snowflake, redis, go, mysql, postgres-c, opentelemetry,
223+
> grpcio, k8s, duckdb, mcp, milvus). Contrib offline stores such as **Trino, Iceberg,
224+
> Spark, Athena, ClickHouse**, and others are **not** included in the base image. To use
225+
> them, build a custom feature-server image that adds the required extras. See
226+
> [Building a custom feature-server image](#building-a-custom-feature-server-image) below.
227+
220228
### Registry
221229

222230
| `type` | Secret key | Notes |
@@ -985,6 +993,200 @@ See [Guide 6 — Batch & Jobs](06-batch-and-jobs.md) for full details.
985993

986994
---
987995

996+
## Building a custom feature-server image
997+
998+
The published `quay.io/feastdev/feature-server` image includes a curated subset of Feast
999+
extras. Contrib store drivers (Trino, Iceberg, Spark, Athena, ClickHouse, etc.) and any
1000+
additional Python packages your feature transformations depend on are **not** included. To
1001+
use them, build a custom image that extends the base image with the packages you need.
1002+
1003+
> **You do not need to clone the Feast repository.** Extend the published base image and
1004+
> install extra packages on top.
1005+
1006+
### Writing the Dockerfile
1007+
1008+
Create a `Dockerfile` in your own infrastructure repository (or the repository that holds
1009+
your Feast feature definitions):
1010+
1011+
```dockerfile
1012+
FROM quay.io/feastdev/feature-server:0.65.0
1013+
1014+
RUN uv pip install --no-cache-dir \
1015+
"feast[trino,redis,iceberg]==0.65.0"
1016+
```
1017+
1018+
Pin the Feast version in both the base image tag and the `pip install` command so the
1019+
server and client libraries stay in sync. Add any other Python packages your feature
1020+
transformations need (ML libraries, internal SDKs, etc.):
1021+
1022+
```dockerfile
1023+
FROM quay.io/feastdev/feature-server:0.65.0
1024+
1025+
RUN uv pip install --no-cache-dir \
1026+
"feast[trino,redis,iceberg,mlflow]==0.65.0" \
1027+
"scikit-learn>=1.3,<2" \
1028+
"my-internal-sdk==1.2.3"
1029+
```
1030+
1031+
### Building and pushing via CI/CD
1032+
1033+
The image build and push should run entirely in CI/CD — never from a developer laptop in
1034+
a production workflow.
1035+
1036+
```yaml
1037+
# Example: GitHub Actions
1038+
name: Build Feast Feature Server
1039+
on:
1040+
push:
1041+
branches: [main]
1042+
paths:
1043+
- 'feast/Dockerfile'
1044+
1045+
jobs:
1046+
build:
1047+
runs-on: ubuntu-latest
1048+
steps:
1049+
- uses: actions/checkout@v4
1050+
- uses: docker/login-action@v3
1051+
with:
1052+
registry: registry.example.com
1053+
username: ${{ secrets.REGISTRY_USER }}
1054+
password: ${{ secrets.REGISTRY_PASSWORD }}
1055+
- uses: docker/build-push-action@v5
1056+
with:
1057+
context: feast/
1058+
push: true
1059+
tags: registry.example.com/feast/feature-server:0.65.0-custom
1060+
```
1061+
1062+
### Referencing the custom image in the FeatureStore CR
1063+
1064+
Point the operator at the custom image using `server.image` on each service that needs it.
1065+
Also set `services.initImage` so the init containers (`feast-init` for git clone/staging
1066+
and `feast-apply` for registry updates) use the same custom image — otherwise they run
1067+
with the default image which lacks the contrib drivers:
1068+
1069+
```yaml
1070+
apiVersion: feast.dev/v1
1071+
kind: FeatureStore
1072+
metadata:
1073+
name: my-feature-store
1074+
spec:
1075+
feastProject: my_project
1076+
feastProjectDir:
1077+
git:
1078+
url: https://github.com/my-org/feast-feature-repo
1079+
ref: <pinned-commit-sha>
1080+
services:
1081+
initImage: registry.example.com/feast/feature-server:0.65.0-custom
1082+
offlineStore:
1083+
server:
1084+
image: registry.example.com/feast/feature-server:0.65.0-custom
1085+
persistence:
1086+
store:
1087+
type: trino
1088+
secretRef:
1089+
name: feast-offline-store
1090+
onlineStore:
1091+
server:
1092+
image: registry.example.com/feast/feature-server:0.65.0-custom
1093+
persistence:
1094+
store:
1095+
type: redis
1096+
secretRef:
1097+
name: feast-online-store
1098+
registry:
1099+
local:
1100+
server:
1101+
image: registry.example.com/feast/feature-server:0.65.0-custom
1102+
persistence:
1103+
store:
1104+
type: sql
1105+
secretRef:
1106+
name: feast-data-stores
1107+
```
1108+
1109+
The `git` section above points to your **feature-definition repository** (not Feast's
1110+
GitHub repository). The operator clones that repository at deployment time to load
1111+
`feature_store.yaml` and feature definitions.
1112+
1113+
Alternatively, set the image once for all services cluster-wide via the operator
1114+
environment variable:
1115+
1116+
```sh
1117+
kubectl set env deployment/feast-operator-controller-manager \
1118+
RELATED_IMAGE_FEATURE_SERVER=registry.example.com/feast/feature-server:0.65.0-custom \
1119+
-n feast-operator-system
1120+
```
1121+
1122+
See [Guide 3 — Serving & Observability](03-serving-and-observability.md#container-image-and-resources)
1123+
for the full image resolution priority chain.
1124+
1125+
### Baking the feature repo into the custom image
1126+
1127+
If the cluster cannot clone a Git repository at runtime (air-gapped environments), combine
1128+
the custom dependencies with the feature repository in one image:
1129+
1130+
```dockerfile
1131+
FROM quay.io/feastdev/feature-server:0.65.0
1132+
1133+
RUN uv pip install --no-cache-dir \
1134+
"feast[trino,redis,iceberg]==0.65.0"
1135+
1136+
COPY feature_repo/ /opt/feast/feature_repo/
1137+
```
1138+
1139+
Then use the `packaged` provisioning mode so the operator reads the baked-in repo:
1140+
1141+
```yaml
1142+
spec:
1143+
feastProject: my_project
1144+
feastProjectDir:
1145+
packaged:
1146+
image: registry.example.com/feast/feature-server:0.65.0-custom
1147+
featureRepoPath: /opt/feast/feature_repo
1148+
services:
1149+
runFeastApplyOnInit: false # apply is handled separately
1150+
offlineStore:
1151+
server: {}
1152+
persistence:
1153+
store:
1154+
type: trino
1155+
secretRef:
1156+
name: feast-offline-store
1157+
```
1158+
1159+
See [Guide 1 — Project Provisioning](01-project-provisioning.md#option-c--use-a-repository-packaged-in-an-image-feastprojectdirpackaged)
1160+
for full `packaged` details.
1161+
1162+
### Included extras in the base image
1163+
1164+
For reference, the base `quay.io/feastdev/feature-server` image installs `feast[minimal]`,
1165+
which expands to:
1166+
1167+
```
1168+
feast[aws, gcp, snowflake, redis, go, mysql, postgres-c, opentelemetry, grpcio, k8s, duckdb, mcp, milvus]
1169+
```
1170+
1171+
The `minimal` extra is defined in the Feast
1172+
[`pyproject.toml`](https://github.com/feast-dev/feast/blob/stable/pyproject.toml).
1173+
1174+
Extras **not** included in `minimal` (require a custom image):
1175+
1176+
| Extra | Offline store |
1177+
|-------|---------------|
1178+
| `trino` | [Trino](../reference/offline-stores/trino.md) |
1179+
| `spark` | [Spark](../reference/offline-stores/spark.md) |
1180+
| `athena` | [Athena](../reference/offline-stores/athena.md) |
1181+
| `mssql` | [MSSQL](../reference/offline-stores/mssql.md) |
1182+
| `clickhouse` | [ClickHouse](../reference/offline-stores/clickhouse.md) |
1183+
| `oracle` | [Oracle](../reference/offline-stores/oracle.md) |
1184+
| `couchbase` | [Couchbase](../reference/offline-stores/couchbase.md) |
1185+
| `iceberg` | Apache Iceberg |
1186+
| `mlflow` | MLflow model registry |
1187+
1188+
---
1189+
9881190
## Troubleshooting
9891191

9901192
| Symptom | Likely cause | Fix |

‎docs/how-to-guides/feast-operator/04-registry-topology.md‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,83 @@ spec:
207207

208208
---
209209

210+
## Client-side configuration (auto-generated ConfigMap)
211+
212+
When the operator deploys a `FeatureStore` CR, it automatically creates a ConfigMap named
213+
`feast-<name>-client` in the same namespace. This ConfigMap contains a ready-to-use
214+
`feature_store.yaml` that points at the deployed remote services (online store, offline
215+
store, and registry).
216+
217+
For example, a CR named `testing` produces a ConfigMap `feast-testing-client`:
218+
219+
```yaml
220+
# ConfigMap: feast-testing-client (auto-generated by the operator)
221+
apiVersion: v1
222+
kind: ConfigMap
223+
metadata:
224+
name: feast-testing-client
225+
data:
226+
feature_store.yaml: |
227+
project: testing
228+
provider: local
229+
online_store:
230+
path: https://feast-testing-online.feast.svc.cluster.local:443
231+
type: remote
232+
cert: /etc/pki/tls/custom-certs/ca-bundle.crt
233+
registry:
234+
path: feast-testing-registry.feast.svc.cluster.local:443
235+
registry_type: remote
236+
cert: /etc/pki/tls/custom-certs/ca-bundle.crt
237+
auth:
238+
type: no_auth
239+
entity_key_serialization_version: 3
240+
```
241+
242+
### Using the client ConfigMap in-cluster
243+
244+
Mount the ConfigMap into your application pod so the Feast SDK discovers the configuration
245+
automatically:
246+
247+
```yaml
248+
apiVersion: apps/v1
249+
kind: Deployment
250+
metadata:
251+
name: ml-serving-app
252+
spec:
253+
template:
254+
spec:
255+
containers:
256+
- name: app
257+
volumeMounts:
258+
- name: feast-client-config
259+
mountPath: /opt/feast
260+
readOnly: true
261+
volumes:
262+
- name: feast-client-config
263+
configMap:
264+
name: feast-testing-client
265+
```
266+
267+
Then initialize the Feast store from the mounted path:
268+
269+
```python
270+
from feast import FeatureStore
271+
272+
store = FeatureStore(repo_path="/opt/feast")
273+
```
274+
275+
### Using the client ConfigMap outside the cluster
276+
277+
Copy the ConfigMap content to your local `feature_store.yaml` for development or
278+
testing outside the cluster. Adjust hostnames and TLS paths as needed (e.g. use
279+
`kubectl port-forward` or an Ingress endpoint):
280+
281+
```sh
282+
kubectl get configmap feast-testing-client -o jsonpath='{.data.feature_store\.yaml}' > feature_store.yaml
283+
```
284+
285+
---
286+
210287
## See also
211288

212289
- [API reference — `RegistryConfig`](https://github.com/feast-dev/feast/blob/stable/infra/feast-operator/docs/api/markdown/ref.md#registryconfig)

‎docs/how-to-guides/feast-operator/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ look for store-specific YAML options in the Feast SDK docs.
4040
- **"How do I wire Postgres/Redis/DuckDB as my store?"** → [Guide 2](02-persistence.md)
4141
- **"How do I enable Prometheus scraping for the feature server?"** → [Guide 3](03-serving-and-observability.md)
4242
- **"How do I make all services share a remote registry?"** → [Guide 4](04-registry-topology.md)
43+
- **"How do I get the client `feature_store.yaml` for connecting to my Feast services?"** → [Guide 4 — Client ConfigMap](04-registry-topology.md#client-side-configuration-auto-generated-configmap)
44+
- **"How do I use a contrib offline store like Trino or Iceberg?"** → [Guide 2 — Custom Image](02-persistence.md#building-a-custom-feature-server-image)
4345
- **"How do I enable Kubernetes RBAC or OIDC auth?"** → [Guide 5](05-security.md)
4446
- **"How do I schedule nightly materialization?"** → [Guide 6](06-batch-and-jobs.md)
4547
- **"How do I send lineage events to Marquez?"** → [Guide 7](07-openlineage-and-materialization.md)

0 commit comments

Comments
 (0)