-
Notifications
You must be signed in to change notification settings - Fork 0
/
configmap.yaml
76 lines (69 loc) · 2.89 KB
/
configmap.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## Resources you want to watch
resources:
- name: RESOURCE # K8s Resource you want to monitor.
# Resource name must be in
# group/version/resource (G/V/R) format
# for core resources with no group,
# ignore group fron g/v/r and use v/r
# resource name should be plural
# (e.g v1/pods, v1.ingresses, etc)
namespaces:
include: # List of namespaces to monitor for
# the RESOURCE events
- namespace/all # Use all to monitor all the resources
ignore: # List of namespaces to be ignored
# used only with include: all
- <namespace> # example : include [all], ignore [x,y,z]
events: # List of lifecycle events you want to
- create # receive notifications about
- update # Valid options are:
- delete # create, update, delete, error OR all
- error
updateSetting: # Set include diff with the update event
# about the changes in specific fields
includeDiff: true # updateSettings are ignored if `update`
# events are not configured for the resource
fields:
- JSONPath # List of JSONPath expressions to monitor
# changes in specific fields
- name: apps/v1/deployments
namespaces:
include:
- dev
- qa
- default
ignore:
- kube-system
- prod
updateSetting:
includeDiff: true
fields:
- spec.template.spec.containers[*].image
- status.availableReplicas
events:
- all
# Check true if you want to receive recommendations
# about the best practices for the created resource
recommendations: true
# Cluster Setting to manage command execution access
settings:
# Set cluster name to differentiate incoming messages
clustername: not-configured
# Kubectl executor configs
kubectl:
# Set true to enable kubectl commands execution
enabled: false
# List of allowed commands
commands:
# kubectl method which are allowed with BotKube command
verbs: ["api-resources", "api-versions", "cluster-info", "describe", "diff", "explain", "get", "logs", "top", "auth"]
# resources on which kubectl methods are allowed with BotKube commands
resources: ["deployments", "pods" , "namespaces", "daemonsets", "statefulsets", "storageclasses", "nodes"]
# set Namespace to execute botkube kubectl commands by default
defaultNamespace: default
# Set true to enable commands execution from configured channel only
restrictAccess: false
# Set true to enable config watcher
configwatcher: true
# Set false to disable upgrade notification
upgradeNotifier: true