Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy Hughes <[email protected]>
  • Loading branch information
tchughesiv committed Dec 23, 2024
1 parent a05fe5f commit 71cd600
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 174 deletions.
96 changes: 48 additions & 48 deletions examples/operator-quickstart/01-Install.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"secret/postgres-secret configured\n",
"persistentvolumeclaim/postgres-volume-claim unchanged\n",
"deployment.apps/postgres unchanged\n",
"deployment.apps/postgres configured\n",
"service/postgres unchanged\n",
"deployment.apps/redis created\n",
"deployment.apps/redis unchanged\n",
"service/redis unchanged\n",
"deployment.apps/postgres condition met\n",
"deployment.apps/redis condition met\n"
Expand All @@ -147,28 +145,23 @@
"output_type": "stream",
"text": [
"\u001b[33;1mWarning:\u001b[0m apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+\n",
"NAME READY STATUS RESTARTS AGE\n",
"pod/feast-example-796d979987-2szq2 3/3 Running 0 10m\n",
"pod/postgres-cc5d584c7-bprkn 1/1 Running 0 14m\n",
"pod/redis-574b9b57-4spxb 1/1 Running 0 10s\n",
"NAME READY STATUS RESTARTS AGE\n",
"pod/postgres-6f5c76d9b5-5zqq4 1/1 Running 0 24s\n",
"pod/redis-574b9b57-z6hj2 1/1 Running 0 5m9s\n",
"\n",
"NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE\n",
"service/feast-example-offline ClusterIP 172.30.115.80 <none> 443/TCP 13m\n",
"service/feast-example-online ClusterIP 172.30.128.110 <none> 443/TCP 13m\n",
"service/feast-example-registry ClusterIP 172.30.155.109 <none> 443/TCP 13m\n",
"service/postgres ClusterIP 172.30.136.162 <none> 5432/TCP 6d19h\n",
"service/redis ClusterIP 172.30.214.94 <none> 6379/TCP 6d19h\n",
"NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE\n",
"service/postgres ClusterIP 172.30.175.127 <none> 5432/TCP 5m10s\n",
"service/redis ClusterIP 172.30.176.203 <none> 6379/TCP 5m9s\n",
"\n",
"NAME READY UP-TO-DATE AVAILABLE AGE\n",
"deployment.apps/feast-example 1/1 1 1 13m\n",
"deployment.apps/postgres 1/1 1 1 14m\n",
"deployment.apps/redis 1/1 1 1 10s\n",
"NAME READY UP-TO-DATE AVAILABLE AGE\n",
"deployment.apps/postgres 1/1 1 1 5m10s\n",
"deployment.apps/redis 1/1 1 1 5m9s\n",
"\n",
"NAME DESIRED CURRENT READY AGE\n",
"replicaset.apps/feast-example-6889f77987 0 0 0 13m\n",
"replicaset.apps/feast-example-796d979987 1 1 1 10m\n",
"replicaset.apps/postgres-cc5d584c7 1 1 1 14m\n",
"replicaset.apps/redis-574b9b57 1 1 1 10s\n",
"NAME DESIRED CURRENT READY AGE\n",
"replicaset.apps/postgres-5c66fcd4c6 0 0 0 3m59s\n",
"replicaset.apps/postgres-6f5c76d9b5 1 1 1 24s\n",
"replicaset.apps/postgres-7c68ddcbbc 0 0 0 5m10s\n",
"replicaset.apps/redis-574b9b57 1 1 1 5m9s\n",
"\n",
"NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD\n",
"route.route.openshift.io/feast-example-client feast-example-client-feast.apps.cluster-gkgh6.gkgh6.sandbox2789.opentlc.com feast-example-client 8501 None\n"
Expand All @@ -192,8 +185,9 @@
"metadata": {},
"outputs": [],
"source": [
"!kubectl apply -f ../../infra/feast-operator/dist/install.yaml\n",
"#!make -C ../../infra/feast-operator install\n",
"#!kubectl apply -f ../../infra/feast-operator/dist/install.yaml\n",
"!make -C ../../infra/feast-operator install\n",
"!make -C ../../infra/feast-operator deploy IMG=quay.io/tchughesiv/feast-operator:0.42.0-dev\n",
"#!make -C ../../infra/feast-operator deploy IMG=quay.io/<org>/feast-operator:<tag>"
]
},
Expand All @@ -214,8 +208,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"secret/feast-data-stores configured\n",
"featurestore.feast.dev/example unchanged\n"
"secret/feast-data-stores created\n",
"featurestore.feast.dev/example created\n"
]
}
],
Expand All @@ -241,35 +235,41 @@
"output_type": "stream",
"text": [
"NAME STATUS AGE\n",
"example Ready 13m\n",
"example Ready 8s\n",
"\u001b[33;1mWarning:\u001b[0m apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+\n",
"NAME READY STATUS RESTARTS AGE\n",
"pod/feast-example-796d979987-2szq2 3/3 Terminating 0 11m\n",
"pod/feast-example-796d979987-c8tpj 0/3 PodInitializing 0 13s\n",
"pod/postgres-cc5d584c7-bprkn 1/1 Running 0 15m\n",
"pod/redis-574b9b57-4spxb 1/1 Running 0 46s\n",
"NAME READY STATUS RESTARTS AGE\n",
"pod/feast-example-offline-74f8d97ff6-lwjqr 0/1 Init:0/1 0 9s\n",
"pod/feast-example-online-749776976-22qrr 0/1 Init:0/1 0 9s\n",
"pod/feast-example-registry-d9c595c99-tmt8q 0/1 ContainerCreating 0 9s\n",
"pod/postgres-6f5c76d9b5-5zqq4 1/1 Running 0 37s\n",
"pod/redis-574b9b57-z6hj2 1/1 Running 0 5m22s\n",
"\n",
"NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE\n",
"service/feast-example-offline ClusterIP 172.30.115.80 <none> 443/TCP 13m\n",
"service/feast-example-online ClusterIP 172.30.128.110 <none> 443/TCP 13m\n",
"service/feast-example-registry ClusterIP 172.30.155.109 <none> 443/TCP 13m\n",
"service/postgres ClusterIP 172.30.136.162 <none> 5432/TCP 6d19h\n",
"service/redis ClusterIP 172.30.214.94 <none> 6379/TCP 6d19h\n",
"service/feast-example-offline ClusterIP 172.30.87.99 <none> 443/TCP 9s\n",
"service/feast-example-online ClusterIP 172.30.136.246 <none> 443/TCP 9s\n",
"service/feast-example-registry ClusterIP 172.30.215.124 <none> 443/TCP 9s\n",
"service/postgres ClusterIP 172.30.175.127 <none> 5432/TCP 5m23s\n",
"service/redis ClusterIP 172.30.176.203 <none> 6379/TCP 5m22s\n",
"\n",
"NAME READY UP-TO-DATE AVAILABLE AGE\n",
"deployment.apps/feast-example 0/1 1 0 13m\n",
"deployment.apps/postgres 1/1 1 1 15m\n",
"deployment.apps/redis 1/1 1 1 46s\n",
"NAME READY UP-TO-DATE AVAILABLE AGE\n",
"deployment.apps/feast-example-offline 0/1 1 0 9s\n",
"deployment.apps/feast-example-online 0/1 1 0 9s\n",
"deployment.apps/feast-example-registry 0/1 1 0 9s\n",
"deployment.apps/postgres 1/1 1 1 5m23s\n",
"deployment.apps/redis 1/1 1 1 5m22s\n",
"\n",
"NAME DESIRED CURRENT READY AGE\n",
"replicaset.apps/feast-example-6889f77987 0 0 0 13m\n",
"replicaset.apps/feast-example-796d979987 1 1 0 11m\n",
"replicaset.apps/postgres-cc5d584c7 1 1 1 15m\n",
"replicaset.apps/redis-574b9b57 1 1 1 46s\n",
"NAME DESIRED CURRENT READY AGE\n",
"replicaset.apps/feast-example-offline-74f8d97ff6 1 1 0 9s\n",
"replicaset.apps/feast-example-online-749776976 1 1 0 9s\n",
"replicaset.apps/feast-example-registry-d9c595c99 1 1 0 9s\n",
"replicaset.apps/postgres-5c66fcd4c6 0 0 0 4m12s\n",
"replicaset.apps/postgres-6f5c76d9b5 1 1 1 37s\n",
"replicaset.apps/postgres-7c68ddcbbc 0 0 0 5m23s\n",
"replicaset.apps/redis-574b9b57 1 1 1 5m22s\n",
"\n",
"NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD\n",
"route.route.openshift.io/feast-example-client feast-example-client-feast.apps.cluster-gkgh6.gkgh6.sandbox2789.opentlc.com feast-example-client 8501 None\n",
"deployment.apps/feast-example condition met\n"
"Error from server (NotFound): deployments.apps \"feast-example\" not found\n"
]
}
],
Expand Down
50 changes: 1 addition & 49 deletions examples/operator-quickstart/feast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stringData:
redis: |
connection_string: redis.feast.svc.cluster.local:6379
sql: |
path: postgresql+psycopg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.feast.svc.cluster.local:5432/${POSTGRES_DB}
path: postgresql+psycopg://postgres@postgres.feast.svc.cluster.local:5432/feast
cache_ttl_seconds: 60
sqlalchemy_config_kwargs:
echo: false
Expand All @@ -25,22 +25,6 @@ spec:
persistence:
file:
type: duckdb
env:
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_DB
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_PASSWORD
image: quay.io/tchughesiv/feature-server:0.42.0
imagePullPolicy: Always
onlineStore:
Expand All @@ -49,22 +33,6 @@ spec:
type: redis
secretRef:
name: feast-data-stores
env:
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_DB
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_PASSWORD
image: quay.io/tchughesiv/feature-server:0.42.0
imagePullPolicy: Always
registry:
Expand All @@ -74,21 +42,5 @@ spec:
type: sql
secretRef:
name: feast-data-stores
env:
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_DB
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_PASSWORD
image: quay.io/tchughesiv/feature-server:0.42.0
imagePullPolicy: Always
17 changes: 0 additions & 17 deletions examples/operator-quickstart/feature_store.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions examples/operator-quickstart/feature_store_client.yaml

This file was deleted.

38 changes: 6 additions & 32 deletions examples/operator-quickstart/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
#https://www.digitalocean.com/community/tutorials/how-to-deploy-postgres-to-kubernetes-cluster
apiVersion: v1
kind: Secret
metadata:
name: postgres-secret
labels:
app: postgres
stringData:
POSTGRES_DB: feast
POSTGRES_USER: feast
POSTGRES_PASSWORD: feast

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-volume-claim
labels:
app: postgres
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -44,16 +17,17 @@ spec:
image: 'postgres:16-alpine'
ports:
- containerPort: 5432
envFrom:
- secretRef:
name: postgres-secret
env:
- name: POSTGRES_DB
value: feast
- name: POSTGRES_HOST_AUTH_METHOD
value: trust
volumeMounts:
- mountPath: /var/lib/postgresql
name: postgresdata
volumes:
- name: postgresdata
persistentVolumeClaim:
claimName: postgres-volume-claim
emptyDir: {}

---
apiVersion: v1
Expand Down
5 changes: 2 additions & 3 deletions examples/operator-quickstart/redis.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -16,11 +15,11 @@ spec:
containers:
- name: redis
image: 'bitnami/redis:latest'
ports:
- containerPort: 6379
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
ports:
- containerPort: 6379

---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion infra/feast-operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: feastdev/feast-operator
newName: quay.io/tchughesiv/feast-operator
newTag: 0.42.0
Loading

0 comments on commit 71cd600

Please sign in to comment.