-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tommy Hughes <tohughes@redhat.com>
- Loading branch information
1 parent
6915016
commit a987044
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
# Feast Feature Server Helm-based Operator | ||
|
||
Leverages [operator-sdk](https://github.com/operator-framework/operator-sdk) and the [feast-feature-server helm chart](/infra/charts/feast-feature-server). | ||
This Operator was built with the [operator-sdk](https://github.com/operator-framework/operator-sdk) and leverages the [feast-feature-server helm chart](/infra/charts/feast-feature-server). | ||
|
||
## Installation | ||
|
||
1. __Install [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)__ | ||
2. __Install the Operator on a Kubernetes cluster__ | ||
|
||
### To run against an K8S cluster - | ||
```bash | ||
$ make deploy | ||
make deploy | ||
``` | ||
|
||
# test the operator by deploying a feature server sample CR | ||
$ oc apply -f config/samples/charts_v1alpha1_feastfeatureserver.yaml | ||
3. __Install a Feast Feature Server on Kubernetes__ | ||
|
||
A base64 encoded version of the `feature_store.yaml` file is required. FeastFeatureServer CR install example: | ||
```bash | ||
cat <<EOF | kubectl create -f - | ||
apiVersion: charts.feast.dev/v1alpha1 | ||
kind: FeastFeatureServer | ||
metadata: | ||
name: example | ||
spec: | ||
feature_store_yaml_base64: $(cat feature_store.yaml | base64) | ||
EOF | ||
``` | ||
Ensure it was successfully created on the cluster and that the `feature_store_yaml_base64` field was properly set. The following command should return output which is identical to your `feature_store.yaml`: | ||
```bash | ||
kubectl get feastfeatureserver example -o jsonpath={.spec.feature_store_yaml_base64} | base64 -d | ||
``` | ||
Watch as the operator creates a running feast feature server: | ||
```bash | ||
kubectl get all | ||
kubectl logs deploy/example-feast-feature-server | ||
``` | ||
|
||
The `FeastFeatureServer.spec` allows one to configure the [same parameters](https://github.com/feast-dev/feast/tree/master/infra/charts/feast-feature-server#values) as the feast-feature-server helm chart. An example of this can be seen with the included sample [FeastFeatureServer](config/samples/charts_v1alpha1_feastfeatureserver.yaml). | ||
|
||
> To install the aforementioned sample FeastFeatureServer, run this command - `kubectl create -f config/samples/charts_v1alpha1_feastfeatureserver.yaml` |