mirror of
https://github.com/nold360/hive-apps
synced 2025-02-05 15:02:48 +00:00
Compare commits
No commits in common. "9173f3bd245be1eacd482930180956ef71510446" and "cb3977bf9ac6c91dc882824248059b5e75be7d47" have entirely different histories.
9173f3bd24
...
cb3977bf9a
4 changed files with 27 additions and 150 deletions
|
@ -1,111 +0,0 @@
|
||||||
apiVersion: kafka.strimzi.io/v1beta2
|
|
||||||
kind: Kafka
|
|
||||||
metadata:
|
|
||||||
name: bi-cluster
|
|
||||||
namespace: bibot
|
|
||||||
spec:
|
|
||||||
kafka:
|
|
||||||
version: 3.7.0
|
|
||||||
replicas: 1
|
|
||||||
listeners:
|
|
||||||
- name: plain
|
|
||||||
port: 9092
|
|
||||||
type: internal
|
|
||||||
tls: false
|
|
||||||
- name: tls
|
|
||||||
port: 9093
|
|
||||||
type: internal
|
|
||||||
tls: true
|
|
||||||
config:
|
|
||||||
offsets.topic.replication.factor: 1
|
|
||||||
transaction.state.log.replication.factor: 1
|
|
||||||
transaction.state.log.min.isr: 1
|
|
||||||
default.replication.factor: 1
|
|
||||||
min.insync.replicas: 1
|
|
||||||
inter.broker.protocol.version: "3.7"
|
|
||||||
storage:
|
|
||||||
type: jbod
|
|
||||||
volumes:
|
|
||||||
- id: 0
|
|
||||||
type: persistent-claim
|
|
||||||
size: 100Gi
|
|
||||||
deleteClaim: false
|
|
||||||
zookeeper:
|
|
||||||
replicas: 1
|
|
||||||
storage:
|
|
||||||
type: persistent-claim
|
|
||||||
size: 100Gi
|
|
||||||
deleteClaim: false
|
|
||||||
entityOperator:
|
|
||||||
topicOperator: {}
|
|
||||||
userOperator: {}
|
|
||||||
---
|
|
||||||
apiVersion: kafka.strimzi.io/v1beta2
|
|
||||||
kind: KafkaTopic
|
|
||||||
metadata:
|
|
||||||
name: bi-input
|
|
||||||
namespace: bibot
|
|
||||||
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: bi-output
|
|
||||||
namespace: bibot
|
|
||||||
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-registry
|
|
||||||
namespace: bibot
|
|
||||||
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-main-input
|
|
||||||
namespace: bibot
|
|
||||||
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: discord-input
|
|
||||||
namespace: bibot
|
|
||||||
labels:
|
|
||||||
strimzi.io/cluster: bi-cluster
|
|
||||||
spec:
|
|
||||||
partitions: 1
|
|
||||||
replicas: 1
|
|
||||||
config:
|
|
||||||
retention.ms: 7200000
|
|
||||||
segment.bytes: 1073741824
|
|
|
@ -1,56 +1,51 @@
|
||||||
controllers:
|
controllers:
|
||||||
# main agent
|
|
||||||
main:
|
main:
|
||||||
containers:
|
containers:
|
||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
repository: reg.dc/bi
|
repository: reg.dc/bibot
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
OPENAI_API_KEY: fake
|
||||||
BIBOT_CONFIG: /config/bibot.yml
|
BIBOT_CONFIG: /config/bibot.yml
|
||||||
BIBOT_KAFKA__BROKER: kafka://bi-cluster-kafka-bootstrap:9092
|
|
||||||
PHOENIX_COLLECTOR_ENDPOINT: http://phoenix.phoenix.svc.cluster.local:6006
|
PHOENIX_COLLECTOR_ENDPOINT: http://phoenix.phoenix.svc.cluster.local:6006
|
||||||
PHOENIX_PROJECT_NAME: bi
|
PHOENIX_PROJECT_NAME: bi
|
||||||
command: ["python3"]
|
OMBI_API_TOKEN:
|
||||||
args: ["/app/bi/agents/main/app.py", "worker", "-l", "info"]
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
controller:
|
name: bibot
|
||||||
|
key: ombi-api-key
|
||||||
|
OPENWEATHERMAP_API_KEY:
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bibot
|
||||||
|
key: OPENWEATHERMAP_API_KEY
|
||||||
|
bot:
|
||||||
containers:
|
containers:
|
||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
repository: reg.dc/bi
|
repository: reg.dc/bibot
|
||||||
tag: latest
|
|
||||||
pullPolicy: Always
|
|
||||||
env:
|
|
||||||
BIBOT_CONFIG: /config/bibot.yml
|
|
||||||
BIBOT_KAFKA__BROKER: kafka://bi-cluster-kafka-bootstrap:9092
|
|
||||||
command: ["python3"]
|
|
||||||
args: ["/app/bi/controller.py", "worker", "-l", "info"]
|
|
||||||
|
|
||||||
discord:
|
|
||||||
containers:
|
|
||||||
main:
|
|
||||||
image:
|
|
||||||
repository: reg.dc/bi
|
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
command: ["python3"]
|
command: ["python3"]
|
||||||
args: ["/app/bi/connectors/discord/app.py", "worker", "-l", "info"]
|
args: ["-u", "discord_bot/main.py"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIBOT_KAFKA__BROKER: bi-cluster-kafka-bootstrap:9092
|
|
||||||
OPENAI_API_KEY: fake
|
OPENAI_API_KEY: fake
|
||||||
BIBOT_DISCORD__TOKEN:
|
BIBOT_DISCORD_TOKEN:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: bibot
|
name: bibot
|
||||||
key: discord-token
|
key: discord-token
|
||||||
## Prod:
|
## Prod:
|
||||||
BIBOT_DISCORD__CHANNELS: "1216440541064200192"
|
BIBOT_DISCORD_CHANNELS: "1216440541064200192"
|
||||||
|
|
||||||
# Dev:
|
# Dev:
|
||||||
# BIBOT_DISCORD_CHANNELS: "1217418069693960223"
|
# BIBOT_DISCORD_CHANNELS: "1217418069693960223"
|
||||||
|
BIBOT_API_URL: "http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:8000/v1"
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -75,10 +70,10 @@ persistence:
|
||||||
type: persistentVolumeClaim
|
type: persistentVolumeClaim
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
|
|
||||||
# service:
|
service:
|
||||||
# main:
|
main:
|
||||||
# controller: main
|
controller: main
|
||||||
# ports:
|
ports:
|
||||||
# http:
|
http:
|
||||||
# port: 8000
|
port: 8000
|
||||||
# type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
@ -29,9 +29,3 @@ apps:
|
||||||
namespace: redis-operator
|
namespace: redis-operator
|
||||||
chart: redis-operator
|
chart: redis-operator
|
||||||
targetRevision: 0.16.4
|
targetRevision: 0.16.4
|
||||||
|
|
||||||
- name: kafka-operator
|
|
||||||
repoURL: https://strimzi.io/charts
|
|
||||||
namespace: kafka-operator
|
|
||||||
chart: strimzi-kafka-operator
|
|
||||||
targetRevision: 0.41.0
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
watchAnyNamespace: true
|
|
Loading…
Add table
Reference in a new issue