Skip to content

Instantly share code, notes, and snippets.

@pkosiec
Last active July 27, 2023 07:06
Show Gist options
  • Save pkosiec/cba19883d183097c81b01e0ed94d49e4 to your computer and use it in GitHub Desktop.
Save pkosiec/cba19883d183097c81b01e0ed94d49e4 to your computer and use it in GitHub Desktop.
Botkube Kubernetes source `extraButtons` configuration
k8s-err-events-with-ai-support: # Source configuration name
displayName: "Kubernetes Errors with AI support" # Source display name
botkube/kubernetes: # Kubernetes plugin configuration
# ...
config:
# ...
extraButtons:
- enabled: true
trigger:
type: ["error"] # show the button only on error events
button:
displayName: "Get Help" # button label
commandTpl: "doctor --resource={{ .Kind | lower }}/{{ .Name }} --namespace={{ .Namespace }} --error={{ .Reason }} --bk-cmd-header='AI assistance'" # button command template, rendered with Kubernetes event data for each event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment