Skip to content

Commit 4361359

Browse files
authored
chore: Add GCS sample to Operator (#5338)
Signed-off-by: Tommy Hughes <[email protected]>
1 parent 60be389 commit 4361359

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: feast-data-stores
5+
stringData:
6+
bigtable: |
7+
project_id: my_gcp_project
8+
instance: my_bigtable_instance
9+
bigquery: |
10+
dataset: feast_bq_dataset
11+
---
12+
kind: Secret
13+
apiVersion: v1
14+
metadata:
15+
name: gcloud-creds
16+
stringData:
17+
# https://cloud.google.com/docs/authentication/application-default-credentials#personal
18+
application_default_credentials.json: |
19+
xxxx
20+
xxxxx
21+
---
22+
apiVersion: feast.dev/v1alpha1
23+
kind: FeatureStore
24+
metadata:
25+
name: gcs
26+
spec:
27+
feastProject: my_project
28+
services:
29+
offlineStore:
30+
persistence:
31+
store:
32+
secretRef:
33+
name: feast-data-stores
34+
type: bigquery
35+
onlineStore:
36+
persistence:
37+
store:
38+
secretRef:
39+
name: feast-data-stores
40+
type: bigtable
41+
server:
42+
volumeMounts:
43+
- mountPath: /opt/app-root/src/.config/gcloud
44+
name: gcloud-creds
45+
readOnly: true
46+
registry:
47+
local:
48+
persistence:
49+
file:
50+
path: 'gs://[YOUR BUCKET YOU CREATED]/registry.pb'
51+
volumes:
52+
- name: gcloud-creds
53+
secret:
54+
secretName: gcloud-creds

0 commit comments

Comments
 (0)