This demo leverages the pre-built docker containers deployed in a sandbox k8s environment on your localhost.
If you already have a K8s cluster, bypass the setup steps and utilize the K8s manifests and configs however you need.
Install kubectl, kind, and kompose.
kind create cluster --config=cluster.yaml
kubectl cluster-info --context kind-arxiv-search
Then apply the ingress:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
Apply the resources:
kubectl apply -f redis-vector-db.yaml
Pause for like 30 seconds here to make sure Redis is up
kubectl apply -f backend.yaml
kubectl get nodes
kubectl get pods
Inspect logs etc...
Port forward the backend service to connect to the app on localhost:8888
:
kubectl port-forward service/backend 8888:8888
Then navigate to http://localhost:8888/
kind delete cluster --name arxiv-search