-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update configuration related docs (#102)
- Loading branch information
Showing
14 changed files
with
282 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: "Global" | ||
date: 2022-07-20T13:28:06+02:00 | ||
draft: false | ||
weight: 21 | ||
--- | ||
|
||
The global settings contains: | ||
|
||
- Toggle `kubectl` command execution, | ||
- Configure `kubectl` commands BotKube can execute, | ||
- Restrict `kubectl` command execute to specific channel. | ||
|
||
## Syntax | ||
|
||
```yaml | ||
|
||
# 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 | ||
``` | ||
The default configuration for Helm chart can be found in [values.yaml](https://github.com/kubeshop/botkube/blob/main/helm/botkube/values.yaml). |
Oops, something went wrong.