Skip to content

Commit

Permalink
fix(bi)
Browse files Browse the repository at this point in the history
  • Loading branch information
nold committed Jan 21, 2025
1 parent 4e1ed61 commit f903204
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 146 deletions.
15 changes: 5 additions & 10 deletions projects/bi/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ apps:
chart: qdrant
targetRevision: 1.12.6

# - name: mongo-express
# repoURL: https://cowboysysop.github.io/charts/
# chart: mongo-express
# targetRevision: 6.5.2
# secrets:
# - name: mongo-express
# keys:
# - mongodb-admin-password
# - site-cookie-secret
# - site-session-secret
- name: valkey
namespace: bi
repoURL: registry-1.docker.io/bitnamicharts
chart: valkey
targetRevision: 2.2.3
114 changes: 28 additions & 86 deletions projects/bi/values/bi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,12 @@ controllers:
env:
BIBOT_CONFIG: /config/bibot.yml
BIBOT_KAFKA__BROKER: kafka://bi-cluster-kafka-bootstrap:9092
BIBOT_MONGODB__URI: mongodb://bi-mongo-svc:27017/
BIBOT_MONGODB__USER:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: username
BIBOT_MONGODB__PASSWORD:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: password
BIBOT_QDRANT__API_KEY:
valueFrom:
secretKeyRef:
name: qdrant-apikey
key: api-key
PHOENIX_COLLECTOR_ENDPOINT: http://phoenix.phoenix.svc.cluster.local:6006
PHOENIX_PROJECT_NAME: bi
BIBOT_VALKEY__HOST: valkey-primary.bi.svc.cluster.local
OPENAI_API_KEY: fake
command: ["python"]
args: ["/app/bi/agents/main/app.py", "worker", "-l", "info"]
Expand All @@ -42,17 +30,7 @@ controllers:
env:
BIBOT_CONFIG: /config/bibot.yml
BIBOT_KAFKA__BROKER: kafka://bi-cluster-kafka-bootstrap:9092
BIBOT_MONGODB__URI: mongodb://bi-mongo-svc:27017/
BIBOT_MONGODB__USER:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: username
BIBOT_MONGODB__PASSWORD:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: password
BIBOT_VALKEY__HOST: valkey-primary.bi.svc.cluster.local
command: ["python"]
args: ["/app/bi/controller.py", "worker", "-l", "info"]

Expand All @@ -66,24 +44,12 @@ controllers:
env:
BIBOT_CONFIG: /config/bibot.yml
BIBOT_KAFKA__BROKER: kafka://bi-cluster-kafka-bootstrap:9092
BIBOT_MONGODB__URI: mongodb://bi-mongo-svc:27017/
BIBOT_MONGODB__USER:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: username
BIBOT_MONGODB__PASSWORD:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: password
BIBOT_QDRANT__API_KEY:
valueFrom:
secretKeyRef:
name: qdrant-apikey
key: api-key
PHOENIX_COLLECTOR_ENDPOINT: http://phoenix.phoenix.svc.cluster.local:6006
PHOENIX_PROJECT_NAME: bi
BIBOT_VALKEY__HOST: valkey-primary.bi.svc.cluster.local
OPENAI_API_KEY: fake
command: ["python"]
args: ["/app/bi/agents/memory/app.py", "worker", "-l", "info"]
Expand All @@ -102,17 +68,7 @@ controllers:

env:
BIBOT_KAFKA__BROKER: bi-cluster-kafka-bootstrap:9092
BIBOT_MONGODB__URI: mongodb://bi-mongo-svc:27017/
BIBOT_MONGODB__USER:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: username
BIBOT_MONGODB__PASSWORD:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: password
BIBOT_VALKEY__HOST: valkey-primary.bi.svc.cluster.local
OPENAI_API_KEY: fake
BIBOT_DISCORD__TOKEN:
valueFrom:
Expand All @@ -132,20 +88,6 @@ controllers:
startup:
enabled: false

mongoui:
containers:
main:
image:
repository: ugleiton/mongo-gui
tag: latest
pullPolicy: Always
env:
MONGO_URL:
valueFrom:
secretKeyRef:
name: bi-mongo-bi-bi
key: connectionString.standardSrv

persistence:
secret:
name: bibot
Expand All @@ -162,28 +104,28 @@ persistence:
type: persistentVolumeClaim
accessMode: ReadWriteOnce

service:
main:
controller: mongoui
ports:
http:
port: 4321
type: ClusterIP
# service:
# main:
# controller: mongoui
# ports:
# http:
# port: 4321
# type: ClusterIP

ingress:
main:
annotations:
cert-manager.io/cluster-issuer: vault-issuer
enabled: true
hosts:
- host: mongo.dc
paths:
- path: /
service:
# name: main
identifier: main
port: 4321
tls:
- hosts:
- mongo.dc
secretName: mongo-tls
# ingress:
# main:
# annotations:
# cert-manager.io/cluster-issuer: vault-issuer
# enabled: true
# hosts:
# - host: mongo.dc
# paths:
# - path: /
# service:
# # name: main
# identifier: main
# port: 4321
# tls:
# - hosts:
# - mongo.dc
# secretName: mongo-tls
50 changes: 0 additions & 50 deletions projects/bi/values/mongo-express.yml

This file was deleted.

1 change: 1 addition & 0 deletions projects/bi/values/valkey.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
architecture: standalone

0 comments on commit f903204

Please sign in to comment.