2019-01-15 09:19:12 +00:00
---
# Configmap
apiVersion : v1
kind : ConfigMap
metadata :
name : botkube-configmap
labels :
app : botkube
data :
config.yaml : |
2019-03-22 07:45:56 +00:00
## Resources you want to watch
2019-01-15 09:19:12 +00:00
resources :
2019-08-09 09:24:10 +00:00
- name : pod # Name of the resources e.g pod, deployment, ingress, etc. (Resource name must be in singular form)
2019-08-20 07:19:27 +00:00
namespaces :
include :
- all
ignore: # List of namespaces to be ignored (omitempty), used only with include : all
- # example : include [all], ignore [x,y,z]
events : # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
2019-01-15 09:19:12 +00:00
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : service
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : deployment
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
2019-08-18 16:09:06 +00:00
- update
2019-01-15 09:19:12 +00:00
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : statefulset
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
2019-08-18 16:09:06 +00:00
- update
2019-01-15 09:19:12 +00:00
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : ingress
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : node
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : namespace
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : persistentvolume
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : persistentvolumeclaim
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : secret
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : configmap
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : daemonset
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
2019-08-20 07:19:27 +00:00
- update
2019-01-15 09:19:12 +00:00
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : job
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
2019-08-09 09:24:10 +00:00
- update
2019-01-15 09:19:12 +00:00
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : role
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : rolebinding
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : clusterrole
namespaces :
2019-10-11 09:27:47 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : clusterrolebinding
2019-01-15 09:19:12 +00:00
namespaces :
2019-08-20 07:19:27 +00:00
include :
- all
ignore :
-
2019-01-15 09:19:12 +00:00
events :
- create
- delete
2019-05-29 17:18:45 +00:00
- error
2019-01-15 09:19:12 +00:00
# Check true if you want to receive recommendations
# about the best practices for the created resource
recommendations : true
# Channels configuration
communications :
2019-03-22 07:45:56 +00:00
# Settings for Slack
2019-01-15 09:19:12 +00:00
slack :
2019-03-14 18:46:46 +00:00
enabled : false
2019-03-22 07:45:56 +00:00
channel : 'SLACK_CHANNEL'
token : 'SLACK_API_TOKEN'
2019-07-26 06:29:15 +00:00
notiftype : short # Change notification type short/long you want to receive. notiftype is optional and Default notification type is short (if not specified)
2019-03-14 18:46:46 +00:00
# Settings for Mattermost
mattermost :
enabled : false
2019-04-03 11:36:25 +00:00
url : 'MATTERMOST_SERVER_URL' # URL where Mattermost is running. e.g https://example.com:9243
token : 'MATTERMOST_TOKEN' # Personal Access token generated by BotKube user
team : 'MATTERMOST_TEAM' # Mattermost Team to configure with BotKube
channel : 'MATTERMOST_CHANNEL' # Mattermost Channel for receiving BotKube alerts
2019-07-26 06:29:15 +00:00
notiftype : short # Change notification type short/long you want to receive. notiftype is optional and Default notification type is short (if not specified)
2019-03-22 07:45:56 +00:00
# Settings for ELS
elasticsearch :
enable : false
server : 'ELASTICSEARCH_ADDRESS' # e.g https://example.com:9243
username : 'ELASTICSEARCH_USERNAME'
password : 'ELASTICSEARCH_PASSWORD'
# ELS index settings
index :
name : botkube
type : botkube-event
shards : 1
replicas : 0
2019-09-01 15:55:07 +00:00
# Settings for Webhook
webhook :
enabled : false
url : 'WEBHOOK_URL' # e.g https://example.com:80
2019-01-15 09:19:12 +00:00
# Setting to support multiple clusters
settings :
# Cluster name to differentiate incoming messages
clustername : not-configured
2019-06-25 13:20:11 +00:00
# Set true to enable kubectl commands execution
allowkubectl : false
2019-08-12 04:54:13 +00:00
# Set true to enable config watcher
configwatcher : true
2019-06-25 13:20:11 +00:00
# Set false to disable upgrade notification
upgradeNotifier : true
2019-01-15 09:19:12 +00:00
---
# serviceaccount
apiVersion : v1
kind : ServiceAccount
metadata :
name : botkube-sa
labels :
app : botkube
---
# Source: botkube/templates/clusterrole.yaml
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
name : botkube-clusterrole
labels :
app : botkube
rules :
- apiGroups : [ "*" ]
resources : [ "*" ]
verbs : [ "get" , "watch" , "list" ]
---
# clusterrolebinding
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
metadata :
name : botkube-clusterrolebinding
labels :
app : botkube
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : botkube-clusterrole
subjects :
- kind : ServiceAccount
name : botkube-sa
namespace : botkube
---
# deployment
2019-10-10 09:58:47 +00:00
apiVersion : apps/v1
2019-01-15 09:19:12 +00:00
kind : Deployment
metadata :
name : botkube
labels :
component : controller
app : botkube
spec :
replicas : 1
selector :
matchLabels :
component : controller
app : botkube
template :
metadata :
labels :
component : controller
app : botkube
spec :
serviceAccountName : botkube-sa
containers :
- name : botkube
2019-10-11 11:43:45 +00:00
image : "infracloudio/botkube:v0.9.0"
2019-01-15 09:19:12 +00:00
imagePullPolicy : Always
volumeMounts :
- name : config-volume
mountPath : "/config"
env :
- name : CONFIG_PATH
value : "/config/"
2019-03-27 05:38:04 +00:00
# set one of the log levels- info, warn, debug, error, fatal, panic
- name : LOG_LEVEL
value : "info"
2019-04-01 05:41:19 +00:00
# set BotKube release version
- name : BOTKUBE_VERSION
2019-10-11 11:14:20 +00:00
value : v0.9.0
2019-01-15 09:19:12 +00:00
volumes :
- name : config-volume
configMap :
name : botkube-configmap
2019-09-01 05:38:29 +00:00
# run as non privilaged user
securityContext :
runAsUser : 101
2019-09-30 08:26:19 +00:00
runAsGroup : 101