mirror of
https://github.com/nold360/hive-apps
synced 2024-12-22 13:01:21 +00:00
feat(bi): researcher
This commit is contained in:
parent
13151eaf14
commit
49e501c256
2 changed files with 61 additions and 1 deletions
|
@ -109,3 +109,31 @@ spec:
|
||||||
config:
|
config:
|
||||||
retention.ms: 7200000
|
retention.ms: 7200000
|
||||||
segment.bytes: 1073741824
|
segment.bytes: 1073741824
|
||||||
|
---
|
||||||
|
apiVersion: kafka.strimzi.io/v1beta2
|
||||||
|
kind: KafkaTopic
|
||||||
|
metadata:
|
||||||
|
name: agent-researcher-input
|
||||||
|
namespace: bi
|
||||||
|
labels:
|
||||||
|
strimzi.io/cluster: bi-cluster
|
||||||
|
spec:
|
||||||
|
partitions: 1
|
||||||
|
replicas: 1
|
||||||
|
config:
|
||||||
|
retention.ms: 7200000
|
||||||
|
segment.bytes: 1073741824
|
||||||
|
---
|
||||||
|
apiVersion: kafka.strimzi.io/v1beta2
|
||||||
|
kind: KafkaTopic
|
||||||
|
metadata:
|
||||||
|
name: agent-researcher-config
|
||||||
|
namespace: bi
|
||||||
|
labels:
|
||||||
|
strimzi.io/cluster: bi-cluster
|
||||||
|
spec:
|
||||||
|
partitions: 1
|
||||||
|
replicas: 1
|
||||||
|
config:
|
||||||
|
retention.ms: 7200000
|
||||||
|
segment.bytes: 1073741824
|
||||||
|
|
|
@ -74,7 +74,6 @@ controllers:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: bi-mongo-bi-bi
|
name: bi-mongo-bi-bi
|
||||||
key: password
|
key: password
|
||||||
|
|
||||||
OPENAI_API_KEY: fake
|
OPENAI_API_KEY: fake
|
||||||
BIBOT_DISCORD__TOKEN:
|
BIBOT_DISCORD__TOKEN:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -94,6 +93,39 @@ controllers:
|
||||||
startup:
|
startup:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
researcher:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: reg.dc/bi
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: Always
|
||||||
|
env:
|
||||||
|
BIBOT_CONFIG: /config/bibot.yml
|
||||||
|
BIBOT_OPENAI__TEMPERATURE: "0.0"
|
||||||
|
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
|
||||||
|
OPENWEATHERMAP_API_KEY:
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bibot
|
||||||
|
key: OPENWEATHERMAP_API_KEY
|
||||||
|
PHOENIX_COLLECTOR_ENDPOINT: http://phoenix.phoenix.svc.cluster.local:6006
|
||||||
|
PHOENIX_PROJECT_NAME: bi
|
||||||
|
command: ["python3"]
|
||||||
|
args: ["/app/bi/agents/researcher/app.py", "worker", "-l", "info"]
|
||||||
|
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
secret:
|
secret:
|
||||||
name: bibot
|
name: bibot
|
||||||
|
|
Loading…
Reference in a new issue