Skip to content

Commit bdb6a42

Browse files
authored
Fix slack bot kubernetes template (onyx-dot-app#4734)
* Fix slack path for kubernetes files * Add env variables
1 parent c2c49b8 commit bdb6a42

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

deployment/kubernetes/slackbot-service-deployment.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
- name: slack-bot
1919
image: onyxdotapp/onyx-backend:latest
2020
imagePullPolicy: IfNotPresent
21-
command: ["python", "onyxdotapp/onyxbot/slack/listener.py"]
21+
command: ["python", "onyx/onyxbot/slack/listener.py"]
2222
ports:
2323
- containerPort: 8000
2424
resources:
@@ -40,6 +40,17 @@ spec:
4040
port: 8000
4141
initialDelaySeconds: 15
4242
periodSeconds: 20
43+
# There are some extra values since this is shared between services
44+
# There are no conflicts though, extra env variables are simply ignored
45+
env:
46+
- name: REDIS_PASSWORD
47+
valueFrom:
48+
secretKeyRef:
49+
name: onyx-secrets
50+
key: redis_password
51+
envFrom:
52+
- configMapRef:
53+
name: env-configmap
4354

4455
---
4556
apiVersion: v1

0 commit comments

Comments
 (0)