1、通知控制器:将Informer注册到kube-apiserver,以监视配置的k8s资源上的事件。它将传入的k8s事件转发给事件管理器。 2、事件管理器:从k8s事件对象中提取所需字段并创建一个新的BotKube事件结构。它将BotKube事件结构传递给过滤引擎。 3、过滤引擎:获取k8s对象和BotKube事件结构并在其上运行过滤器。每个过滤器都会在k8s对象上运行一些验证,并在需要时修改BotKube事件结构中的消息。 4、事件通知器:最后,通知器通过配置的通信通道发送BotKube事件。 5、Bot界面:Bot界面负责验证和管理与Slack、Mattermost、Microsoft Teams等通信媒介的连接,并从/向它们读取/发送消息。 6、执行器:执行BotKube或kubectl命令,并将结果返回给Bot接口。
搭载 Apple Silicon 的 Mac
brew install kubeshop/fuse-releases/fuse
brew upgrade kubeshop/fuse-releases/fuse
curl -Lo fuse https://github.com/kubeshop/fuse-releases/releases/latest/download/fuse-darwin-arm64
chmod +x fuse && mv fuse /usr/local/bin/fuse
搭载英特尔芯片的 Mac
brew install kubeshop/fuse/fuse
curl -Lo fuse https://github.com/kubeshop/fuse-releases/releases/latest/download/fuse-darwin-amd64
chmod +x fuse && mv fuse /usr/local/bin/fuse
Linux
export ARCH=<your-arch> # allowed values: amd64, arm64, 386
curl -Lo fuse https://github.com/kubeshop/fuse-releases/releases/latest/download/fuse-linux-${ARCH}
chmod +x fuse && mv fuse /usr/local/bin/fuse
brew install kubeshop/fuse-releases/fuse
brew upgrade kubeshop/fuse-releases/fuse
Windows
curl -Lo fuse https://github.com/kubeshop/fuse-releases/releases/latest/download/fuse-windows-amd64.exe
其他
export OS=<your-os> # allowed values: darwin, linux, windows
export ARCH=<your-arch> # allowed values: amd64, arm64, 386
export SUFFIX="" # set to ".exe" if OS is 'windows'
curl -Lo fuse https://github.com/kubeshop/fuse-releases/releases/latest/download/fuse-${OS}-${ARCH}${SUFFIX}
chmod +x fuse && mv fuse /usr/local/bin/fuse
fuse
内联模式
fuse 'list files in the current directory and provide me better organization structure'工具运行演示
原文始发于微信公众号(FreeBuf):BotKube:一款针对Kubernetes集群的安全监控与调试部署工具
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论