Skip to content

Latest commit

 

History

History

k8s

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Running with Kubernetes

This demo leverages the pre-built docker containers deployed in a sandbox k8s environment on your localhost.

Prerequisites

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.

Create Cluster with Kind

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

Validate Cluster

kubectl get nodes
kubectl get pods

Inspect logs etc...

Expose Ports and Test App

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/

Cleaning Up

kind delete cluster --name arxiv-search