forked from janetkuo/kubebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubebot-deployment.yaml
39 lines (39 loc) · 1.28 KB
/
kubebot-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kubebot
labels:
component: kubebot
spec:
replicas: 1
template:
metadata:
labels:
component: kubebot
spec:
containers:
- name: kubebot
image: harbur/kubebot:0.1.0
imagePullPolicy: Always
env:
# Create a secret with your slack bot token and reference it here
- name: KUBEBOT_SLACK_TOKEN
valueFrom:
secretKeyRef:
name: kubebot
key: token
# Create a secret with your slack bot channel id and reference it here
- name: KUBEBOT_SLACK_CHANNELS_IDS
valueFrom:
secretKeyRef:
name: kubebot
key: channel
# Alternatively, use this instead if you don't need to put channel ids in a secret; use a space as a separator
# - name: KUBEBOT_SLACK_CHANNELS_IDS
# value: "1234 4321"
# Specify slack admins that kubebot should listen to; use a space as a separator
- name: KUBEBOT_SLACK_ADMINS_NICKNAMES
value: "user1 user2"
# Specify valid kubectl commands that kubebot should support; use a space as a separator
- name: KUBEBOT_SLACK_VALID_COMMANDS
value: "get describe scale"