forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Updated python-helm-demo example to use MinIO instead of GS (fea…
…st-dev#4691) * Updated python-helm-demo example to use MinIO instead of GS Signed-off-by: Daniele Martinoli <[email protected]> * Update examples/python-helm-demo/README.md Co-authored-by: Francisco Arceo <[email protected]> Signed-off-by: Daniele Martinoli <[email protected]> * Adding explicit wait to container to validate CI failures Signed-off-by: Daniele Martinoli <[email protected]> * restored original conftest Signed-off-by: Daniele Martinoli <[email protected]> --------- Signed-off-by: Daniele Martinoli <[email protected]> Co-authored-by: Francisco Arceo <[email protected]> Signed-off-by: lrangine <[email protected]>
- Loading branch information
1 parent
91c8910
commit efdebcd
Showing
9 changed files
with
287 additions
and
50 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
Binary file modified
BIN
+383 Bytes
(100%)
examples/python-helm-demo/feature_repo/data/driver_stats_with_string.parquet
Binary file not shown.
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
examples/python-helm-demo/feature_repo/feature_store.yaml.template
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
registry: s3://feast-demo/registry.db | ||
project: feast_python_demo | ||
provider: local | ||
online_store: | ||
type: redis | ||
connection_string: localhost:6379,password=_REDIS_PASSWORD_ | ||
offline_store: | ||
type: file | ||
entity_key_serialization_version: 2 |
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: minio-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 20Gi | ||
volumeMode: Filesystem | ||
--- | ||
kind: Secret | ||
apiVersion: v1 | ||
metadata: | ||
name: minio-secret | ||
stringData: | ||
# change the username and password to your own values. | ||
# ensure that the user is at least 3 characters long and the password at least 8 | ||
minio_root_user: minio | ||
minio_root_password: minio123 | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: minio | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: minio | ||
template: | ||
metadata: | ||
labels: | ||
app: minio | ||
spec: | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: minio-pvc | ||
containers: | ||
- resources: | ||
limits: | ||
cpu: 250m | ||
memory: 1Gi | ||
requests: | ||
cpu: 20m | ||
memory: 100Mi | ||
readinessProbe: | ||
tcpSocket: | ||
port: 9000 | ||
initialDelaySeconds: 5 | ||
timeoutSeconds: 1 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
terminationMessagePath: /dev/termination-log | ||
name: minio | ||
livenessProbe: | ||
tcpSocket: | ||
port: 9000 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 1 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
env: | ||
- name: MINIO_ROOT_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio-secret | ||
key: minio_root_user | ||
- name: MINIO_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio-secret | ||
key: minio_root_password | ||
ports: | ||
- containerPort: 9000 | ||
protocol: TCP | ||
- containerPort: 9090 | ||
protocol: TCP | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
- name: data | ||
mountPath: /data | ||
subPath: minio | ||
terminationMessagePolicy: File | ||
image: >- | ||
quay.io/minio/minio:RELEASE.2023-06-19T19-52-50Z | ||
args: | ||
- server | ||
- /data | ||
- --console-address | ||
- :9090 | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 | ||
dnsPolicy: ClusterFirst | ||
securityContext: {} | ||
schedulerName: default-scheduler | ||
strategy: | ||
type: Recreate | ||
revisionHistoryLimit: 10 | ||
progressDeadlineSeconds: 600 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: minio-service | ||
spec: | ||
ipFamilies: | ||
- IPv4 | ||
ports: | ||
- name: api | ||
protocol: TCP | ||
port: 9000 | ||
targetPort: 9000 | ||
- name: ui | ||
protocol: TCP | ||
port: 9090 | ||
targetPort: 9090 | ||
internalTrafficPolicy: Cluster | ||
type: ClusterIP | ||
ipFamilyPolicy: SingleStack | ||
sessionAffinity: None | ||
selector: | ||
app: minio |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export AWS_ACCESS_KEY_ID=minio | ||
export AWS_DEFAULT_REGION=default | ||
#export AWS_S3_BUCKET=feast-demo | ||
#export AWS_S3_ENDPOINT=http://localhost:9000 | ||
export FEAST_S3_ENDPOINT_URL=http://localhost:9000 | ||
export AWS_SECRET_ACCESS_KEY=minio123 | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
project: feast_python_demo | ||
provider: local | ||
registry: s3://feast-demo/registry.db | ||
online_store: | ||
type: redis | ||
connection_string: my-redis-master:6379,password=_REDIS_PASSWORD_ | ||
entity_key_serialization_version: 2 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
registry: s3://feast-demo/registry.db | ||
project: feast_python_demo | ||
provider: local | ||
online_store: | ||
path: http://localhost:6566 | ||
type: remote | ||
entity_key_serialization_version: 2 |
Oops, something went wrong.