forked from dgarnitz/vectorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed embed bug * made minio service more secure * added rabbit mq fix to hf app * uncommented code --------- Co-authored-by: David Garnitz <[email protected]>
- Loading branch information
Showing
8 changed files
with
112 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: hugging-face | ||
namespace: vectorflow | ||
labels: | ||
app: hugging-face | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: hugging-face | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
io.kompose.network/vectorflow: "true" | ||
app: hugging-face | ||
spec: | ||
containers: | ||
- args: | ||
- bash | ||
- /wait-for-it.sh | ||
- rabbitmq:5672 | ||
- -- | ||
- python | ||
- app.py | ||
- --model_name # this is currently failing, not read in due to weird way the script runs | ||
- "BAAI/bge-small-en" | ||
env: | ||
- name: VDB_UPLOAD_QUEUE | ||
valueFrom: | ||
configMapKeyRef: | ||
key: VDB_UPLOAD_QUEUE | ||
name: config-map | ||
- name: POSTGRES_DB | ||
valueFrom: | ||
configMapKeyRef: | ||
key: POSTGRES_DB | ||
name: config-map | ||
- name: POSTGRES_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
key: POSTGRES_HOST | ||
name: config-map | ||
- name: POSTGRES_PASSWORD | ||
valueFrom: | ||
configMapKeyRef: | ||
key: POSTGRES_PASSWORD | ||
name: config-map | ||
- name: POSTGRES_USERNAME | ||
valueFrom: | ||
configMapKeyRef: | ||
key: POSTGRES_USERNAME | ||
name: config-map | ||
- name: RABBITMQ_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
key: RABBITMQ_HOST | ||
name: config-map | ||
- name: RABBITMQ_PASSWORD | ||
valueFrom: | ||
configMapKeyRef: | ||
key: RABBITMQ_PASSWORD | ||
name: config-map | ||
- name: RABBITMQ_USERNAME | ||
valueFrom: | ||
configMapKeyRef: | ||
key: RABBITMQ_USERNAME | ||
name: config-map | ||
image: vectorflow_hf | ||
name: hugging-face | ||
imagePullPolicy: IfNotPresent | ||
resources: {} | ||
restartPolicy: Always | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ metadata: | |
name: minio | ||
namespace: vectorflow | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- name: "9000" | ||
port: 9000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters