This page covers deploying Feast on Kubernetes, including the Feast Operator and feature servers.
Kubernetes is a common target environment for running Feast in production. You can use Kubernetes to:
- Run Feast feature servers for online feature retrieval.
- Run scheduled and ad-hoc jobs (e.g. materialization jobs) as Kubernetes Jobs.
- Operate Feast components using Kubernetes-native primitives.
To deploy Feast components on Kubernetes, use the included feast-operator.
For first-time Operator users, it may be a good exercise to try the Feast Operator Quickstart. The quickstart demonstrates some of the Operator's built-in features, e.g. git repos, feast apply jobs, etc.
{% embed url="https://www.youtube.com/playlist?list=PLPzVNzik7rsAN-amQLZckd0so3cIr7blX" %}
Basic steps
- Install kubectl
- Install the Operator
Install the latest release:
kubectl apply -f https://raw.githubusercontent.com/feast-dev/feast/refs/heads/stable/infra/feast-operator/dist/install.yamlOR, install a specific version:
kubectl apply -f https://raw.githubusercontent.com/feast-dev/feast/refs/tags/<version>/infra/feast-operator/dist/install.yaml- Deploy a Feature Store
kubectl apply -f https://raw.githubusercontent.com/feast-dev/feast/refs/heads/stable/infra/feast-operator/config/samples/v1_featurestore.yamlVerify the status:
$ kubectl get feast
NAME STATUS AGE
sample Ready 2m21sThe above will install a simple FeatureStore CR like the following. By default, it will run the Online Store feature server:
apiVersion: feast.dev/v1
kind: FeatureStore
metadata:
name: sample
spec:
feastProject: my_projectMore advanced FeatureStore CR examples can be found in the feast-operator samples directory.
{% hint style="success" %} Important note: Scaling a Feature Store Deployment should only be done if the configured data store(s) will support it.
Please check the how-to guide for some specific recommendations on how to scale Feast. {% endhint %}