mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-04 12:58:42 +02:00
Fix slack bot kubernetes template (#4734)
* Fix slack path for kubernetes files * Add env variables
This commit is contained in:
@@ -18,7 +18,7 @@ spec:
|
|||||||
- name: slack-bot
|
- name: slack-bot
|
||||||
image: onyxdotapp/onyx-backend:latest
|
image: onyxdotapp/onyx-backend:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["python", "onyxdotapp/onyxbot/slack/listener.py"]
|
command: ["python", "onyx/onyxbot/slack/listener.py"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
resources:
|
resources:
|
||||||
@@ -40,6 +40,17 @@ spec:
|
|||||||
port: 8000
|
port: 8000
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
|
# There are some extra values since this is shared between services
|
||||||
|
# There are no conflicts though, extra env variables are simply ignored
|
||||||
|
env:
|
||||||
|
- name: REDIS_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: onyx-secrets
|
||||||
|
key: redis_password
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: env-configmap
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
Reference in New Issue
Block a user