botkube

by Botkube

Helm chartv1.14.0App v1.14.0Verified publisher

A virtual SRE, powered by AI.

About this chart

Botkube

A virtual SRE, powered by AI.

Homepage: https://botkube.io

Maintainers

NameEmail
Botkube Dev Team[email protected]

Source Code

https://github.com/kubeshop/botkube

Parameters

KeyTypeDefaultDescription
image.registrystring"ghcr.io"Botkube container image registry.
image.repositorystring"kubeshop/botkube"Botkube container image repository.
image.pullPolicystring"IfNotPresent"Botkube container image pull policy.
image.tagstring"v1.14.0"Botkube container image tag. Default tag is appVersion from Chart.yaml.
podSecurityPolicyobject{"enabled":false}Configures Pod Security Policy to allow Botkube to run in restricted clusters. Ref doc.
securityContextobjectRuns as a Non-Privileged user.Configures security context to manage user Privileges in Pod. Ref doc.
containerSecurityContextobject{"allowPrivilegeEscalation":false,"privileged":false,"readOnlyRootFilesystem":true}Configures container security context. Ref doc.
rbacobject{"create":true,"groups":{"botkube-plugins-default":{"create":true,"rules":[{"apiGroups":["*"],"resources":["*"],"verbs":["get","watch","list"]}]}},"rules":[],"serviceAccountMountPath":"/var/run/7e7fd2f5-b15d-4803-bc52-f54fba357e76/secrets/kubernetes.io/serviceaccount","staticGroupName":""}Role Based Access for Botkube Pod and plugins. Ref doc.
rbac.serviceAccountMountPathstring"/var/run/7e7fd2f5-b15d-4803-bc52-f54fba357e76/secrets/kubernetes.io/serviceaccount"It is used to specify a custom path for mounting a service account to the Botkube deployment. This is important because we run plugins within the same Pod, and we want to avoid potential bugs when plugins rely on the default in-cluster K8s client configuration. Instead, they should always use kubeconfig specified directly for a given plugin.
rbac.createbooltrueConfigure RBAC resources for Botkube and (deprecated) staticGroupName subject with rules. For creating RBAC resources related to plugin permissions, use the groups property.
rbac.ruleslist[]Deprecated. Use rbac.groups instead.
rbac.staticGroupNamestring""Deprecated. Use rbac.groups instead.
rbac.groupsobject{"botkube-plugins-default":{"create":true,"rules":[{"apiGroups":["*"],"resources":["*"],"verbs":["get","watch","list"]}]}}Use this to create RBAC resources for specified group subjects.
kubeconfig.enabledboolfalseIf true, enables overriding the Kubernetes auth.
kubeconfig.base64Configstring""A base64 encoded kubeconfig that will be stored in a Secret, mounted to the Pod, and specified in the KUBECONFIG environment variable.
kubeconfig.existingSecretstring""A Secret containing a kubeconfig to use.
actionsobjectSee the values.yaml file for full object.Map of actions. Action contains configuration for automation based on observed events. The property name under actions object is an alias for a given configuration. You can define multiple actions configuration with different names.
actions.describe-created-resource.enabledboolfalseIf true, enables the action.
actions.describe-created-resource.displayNamestring"Describe created resource"Action display name posted in the channels bound to the same source bindings.
actions.describe-created-resource.commandstringSee the values.yaml file for the command in the Go template form.Command to execute when the action is triggered. You can use Go template (https://pkg.go.dev/text/template) together with all helper functions defined by Slim-Sprig library (https://go-task.github.io/slim-sprig). You can use the {{ .Event }} variable, which contains the event object that triggered the action. See all available Kubernetes event properties on https://github.com/kubeshop/botkube/blob/main/internal/source/kubernetes/event/event.go.
actions.describe-created-resource.bindingsobject{"executors":["k8s-default-tools"],"sources":["k8s-create-events"]}Bindings for a given action.
actions.describe-created-resource.bindings.sourceslist["k8s-create-events"]Event sources that trigger a given action.
actions.describe-created-resource.bindings.executorslist["k8s-default-tools"]Executors configuration used to execute a configured command.
actions.show-logs-on-error.enabledboolfalseIf true, enables the action.
actions.show-logs-on-error.displayNamestring"Show logs on error"Action display name posted in the channels bound to the same source bindings.
actions.show-logs-on-error.commandstringSee the values.yaml file for the command in the Go template form.Command to execute when the action is triggered. You can use Go template (https://pkg.go.dev/text/template) together with all helper functions defined by Slim-Sprig library (https://go-task.github.io/slim-sprig). You can use the {{ .Event }} variable, which contains the event object that triggered the action. See all available Kubernetes event properties on https://github.com/kubeshop/botkube/blob/main/internal/source/kubernetes/event/event.go.
actions.show-logs-on-error.bindingsobject{"executors":["k8s-default-tools"],"sources":["k8s-err-with-logs-events"]}Bindings for a given action.
actions.show-logs-on-error.bindings.sourceslist["k8s-err-with-logs-events"]Event sources that trigger a given action.
actions.show-logs-on-error.bindings.executorslist["k8s-default-tools"]Executors configuration used to execute a configured command.
sourcesobjectSee the values.yaml file for full object.Map of sources. Source contains configuration for Kubernetes events and sending recommendations. The property name under sources object is an alias for a given configuration. You can define multiple sources configuration with different names. Key name is used as a binding reference.
sources.k8s-recommendation-events.botkube/kubernetesobjectSee the values.yaml file for full object.Describes Kubernetes source configuration.
executors.k8s-default-tools.botkube/kubectl.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-recommendation-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-err-with-logs-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
executors.k8s-default-tools.botkubeExtra/helm.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-err-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-create-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-all-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
sources.k8s-create-events.botkube/kubernetes.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
executors.k8s-default-tools.botkube/kubectl.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-err-events.botkube/kubernetes.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
executors.k8s-default-tools.botkubeExtra/helm.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-recommendation-events.botkube/kubernetes.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-all-events.botkube/kubernetes.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-err-with-logs-events.botkube/kubernetes.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-all-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-err-with-logs-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-create-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-recommendation-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-err-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
executors.k8s-default-tools.botkubeExtra/helm.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
executors.k8s-default-tools.botkube/kubectl.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-err-events.botkube/kubernetes.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
sources.k8s-recommendation-events.botkube/kubernetes.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
sources.k8s-err-with-logs-events.botkube/kubernetes.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
sources.k8s-create-events.botkube/kubernetes.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
executors.k8s-default-tools.botkube/kubectl.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
executors.k8s-default-tools.botkubeExtra/helm.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
sources.k8s-all-events.botkube/kubernetes.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendationsobject{"ingress":{"backendServiceValid":true,"tlsSecretValid":true},"pod":{"labelsSet":true,"noLatestImageTag":true}}Describes configuration for various recommendation insights.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendations.podobject{"labelsSet":true,"noLatestImageTag":true}Recommendations for Pod Kubernetes resource.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendations.pod.noLatestImageTagbooltrueIf true, notifies about Pod containers that use latest tag for images.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendations.pod.labelsSetbooltrueIf true, notifies about Pod resources created without labels.
[sources.k8s-recomm

Deploy botkube with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has botkube on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbotkube is pinned at v1.14.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply