Skip to content

Commit

Permalink
Develop k8s image search
Browse files Browse the repository at this point in the history
  • Loading branch information
vectornguyen76 committed Nov 24, 2023
1 parent bbf47c5 commit a6fcc74
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ image-search-engine/assets/uploaded_images/*
!image-search-engine/assets/uploaded_images/.gitkeep

# Logs
image-search-engine/logs/*
# image-search-engine/logs/*

# Model
*.pth
Expand Down
Empty file.
9 changes: 8 additions & 1 deletion kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
```
- Install repo
```
helm upgrade -i qdrant-vector-database qdrant/qdrant
helm upgrade -i qdrant-db qdrant/qdrant
```
- Check repo
```
Expand Down Expand Up @@ -60,6 +60,13 @@
kubectl delete -f postgres-deployment.yaml,postgres-service.yaml,postgres-pvc.yaml,postgres-pv.yaml
```

**4. Deploy Image Search**

```
kubectl apply -f image-search-deployment.yaml,image-search-service.yaml
kubectl delete -f image-search-deployment.yaml,image-search-service.yaml
```

6. Show dashboard
```
minikube dashboard
Expand Down
9 changes: 7 additions & 2 deletions kubernetes/image-search-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ spec:
containers:
- name: image-search-container
image: vectornguyen76/image-search-engine:latest
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 7000
initialDelaySeconds: 3
periodSeconds: 3
env:
- name: QDRANT_HOST
- name: QDRANT_URL
value: "http://qdrant-db.default:6334"
- name: TRITON_SERVER_URL
value: "qdrant-vector-database.default"
ports:
- containerPort: 7000

0 comments on commit a6fcc74

Please sign in to comment.