botkube

by Avesha

Helm chartv1.0.0App v1.0.0Verified publisher

Controller for the Kubeslice Botkube Slack app which helps you monitor your Kubernetes cluster, debug deployments and run specific checks on kubeslice resources as well as kuberenetes resources in the cluster.

About this chart

Botkube

Controller for the Botkube Slack app which helps you monitor your Kubernetes cluster, debug deployments and run specific checks on resources in the cluster.

Homepage: https://botkube.io

Maintainers

NameEmail
Botkube Dev Team[email protected]

Source Code

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.0.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,"rules":[{"apiGroups":["*"],"resources":["*"],"verbs":["get","watch","list"]}],"staticGroupName":"botkube-plugins-default"}Role Based Access for Botkube Pod. Ref doc.
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 event properties on https://github.com/kubeshop/botkube/blob/main/pkg/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 event properties on https://github.com/kubeshop/botkube/blob/main/pkg/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.
sources.k8s-recommendation-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.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
executors.k8s-default-tools.botkube/kubectl.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
executors.k8s-default-tools.botkube/helm.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.
sources.k8s-err-events.botkube/kubernetes.context.rbacobject{"group":{"prefix":"","static":{"values":["botkube-plugins-default"]},"type":"Static"}}RBAC configuration for this plugin.
executors.k8s-default-tools.botkube/helm.context.rbac.group.typestring"Static"Static impersonation for a given username and groups.
sources.k8s-create-events.botkube/kubernetes.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.
sources.k8s-recommendation-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.
executors.k8s-default-tools.botkube/kubectl.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-create-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[*].
executors.k8s-default-tools.botkube/helm.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[*].
sources.k8s-recommendation-events.botkube/kubernetes.context.rbac.group.prefixstring""Prefix that will be applied to .static.value[*].
sources.k8s-all-events.botkube/kubernetes.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-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.
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.
executors.k8s-default-tools.botkube/helm.context.rbac.group.static.valueslist["botkube-plugins-default"]Name of group.rbac.authorization.k8s.io the plugin will be bound to.
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-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-recommendation-events.botkube/kubernetes.config.recommendations.ingressobject{"backendServiceValid":true,"tlsSecretValid":true}Recommendations for Ingress Kubernetes resource.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendations.ingress.backendServiceValidbooltrueIf true, notifies about Ingress resources with invalid backend service reference.
sources.k8s-recommendation-events.botkube/kubernetes.config.recommendations.ingress.tlsSecretValidbooltrueIf true, notifies about Ingress resources with invalid TLS secret reference.
sources.k8s-all-events.botkube/kubernetesobjectSee the values.yaml file for full object.Describes Kubernetes source configuration.
sources.k8s-all-events.botkube/kubernetes.config.filtersobjectSee the values.yaml file for full object.Filter settings for various sources.
sources.k8s-all-events.botkube/kubernetes.config.filters.objectAnnotationCheckerbooltrueIf true, enables support for botkube.io/disable resource annotation.
sources.k8s-all-events.botkube/kubernetes.config.filters.nodeEventsCheckerbooltrueIf true, filters out Node-related events that are not important.
[sources.k8

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.0.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