-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Add a Kubernetes Operator for the Feast Feature Server #4145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
addt'l operator documentation
Signed-off-by: Tommy Hughes <tohughes@redhat.com>
- Loading branch information
commit a9870443645db21e9067f42f588dcd817855bd89
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.