您可以使用标准的 Helm Chart 来安装 VeAIOps 到您的 Kubernetes 集群中。
git clone https://github.com/volcengine/veaiops.git
cd charts/veaiops
helm --kubeconfig <path-to-kubeconfig> install veaiops -n veaiops-system --create-namespace --dependency-update .

为了使用智能阈值的告警规则注入能力,您需要为VeAIOps事件中心配置Webhook地址,该地址将作为监控数据源(如火山云监控、阿里云监控、Zabbix等)投递的告警目标地址,因此监控数据源所在集群需要能够正确访问该地址。
您可以在火山容器服务中快速安装 VeAIOps 平台。
在创建容器服务时,需要允许“公网访问”和“API Server 公网访问”。
在创建容器服务时,需要安装 "ingress-nginx"。

在完成容器服务创建后,获取对应的“公网访问Config"。

git clone https://github.com/volcengine/veaiops.git
cd charts/veaiops
helm --kubeconfig <path-to-kubeconfig> install veaiops -n veaiops-system --create-namespace --dependency-update .

$kubectl --kubeconfig <path-to-kubeconfig> get ingress veaiops-ingress -n veaiops-system
NAME CLASS HOSTS ADDRESS PORTS AGE
veaiops-ingress nginx veaiops.example-stable.com <公网IP> 80 3h48m
从上图所示的执行结果中,获取和记录 veaiops-ingress 对应的公网 IP 地址,并通过以下的配置命令将该 IP 地址配置到 VeAIOps 事件中心的 Webhook 地址对应的环境变量 WEBHOOK_EVENT_CENTER_EXTERNAL_URL 中。
$kubectl --kubeconfig <path-to-kubeconfig> patch configmap env-config -n veaiops-system --type merge -p '{"data":{"WEBHOOK_EVENT_CENTER_EXTERNAL_URL":"https://<公网IP>"}}'
随后重启 VeAIOps 事件中心的 Deployment 来使配置生效:
$kubectl --kubeconfig <path-to-kubeconfig> rollout restart deployment veaiops-backend -n veaiops-system
完成系统部署和配置后,您可以快速进行功能场景的配置,并开始使用VeAIOps的功能场景: