2019-04-24 10:44:40 +00:00
---
# Configmap
apiVersion : v1
kind : ConfigMap
metadata :
name : botkube-configmap
labels :
app : botkube
data :
config.yaml : |
## Resources you want to watch
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)
namespaces : # List of namespaces, "all" will watch all the namespaces
2019-04-24 10:44:40 +00:00
- all
2019-08-09 09:24:10 +00:00
events : # List of lifecycle events you want to receive, e.g create, update, delete OR all
2019-04-24 10:44:40 +00:00
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : service
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : deployment
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : statefulset
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : ingress
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : node
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : namespace
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : persistentvolume
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : persistentvolumeclaim
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : secret
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : configmap
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : daemonset
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : job
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
2019-08-09 09:24:10 +00:00
- update
2019-04-24 10:44:40 +00:00
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : role
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : rolebinding
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : clusterrole
namespaces :
2019-04-24 10:44:40 +00:00
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-08-09 09:24:10 +00:00
- name : clusterrolebinding
2019-04-24 10:44:40 +00:00
namespaces :
- all
events :
- create
- delete
2019-06-25 13:20:11 +00:00
- error
2019-04-24 10:44:40 +00:00
# Check true if you want to receive recommendations
# about the best practices for the created resource
recommendations : true
# Channels configuration
communications :
# Settings for Slack
slack :
enabled : false
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-04-24 10:44:40 +00:00
# Settings for Mattermost
mattermost :
enabled : false
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-04-24 10:44:40 +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
# 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
2019-04-24 10:44:40 +00:00
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-04-24 10:44:40 +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
---
# Secret
apiVersion : v1
kind : Secret
metadata :
name : botkube-secret
labels :
app : botkube
data :
ca-certificates.crt : ENCODED_CERTIFICATE
---
# deployment
apiVersion : extensions/v1beta1
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-07-09 10:43:16 +00:00
image : "infracloud/botkube:v0.8.0"
2019-04-24 10:44:40 +00:00
imagePullPolicy : Always
volumeMounts :
- name : config-volume
mountPath : "/config"
- name : certs
mountPath : "/etc/ssl/certs"
env :
- name : CONFIG_PATH
value : "/config/"
# set one of the log levels- info, warn, debug, error, fatal, panic
- name : LOG_LEVEL
value : "info"
# set BotKube release version
- name : BOTKUBE_VERSION
2019-07-09 10:43:16 +00:00
value : v0.8.0
2019-04-24 10:44:40 +00:00
volumes :
- name : config-volume
configMap :
name : botkube-configmap
- name : certs
secret :
secretName : botkube-secret