本文介绍如何创建Kubernetes事件中心及相关操作,包括查看事件总览、查询事件详情、查看Pod生命周期、配置告警和自定义查询等。
1、登录日志服务控制台。
2、在日志应用区域,单击K8s事件中心用。
3、在事件中心管理页面,单击添加。
4、在添加事件中心页面,配置相关参数。
5、选择已有Project,可从Project下拉框中选择已创建的Project。
6、(可选)如果选择从容器服务选择K8s集群,可从K8s集群下拉框中选择已创建的K8s集群。通过此方式创建事件中心,会默认创建一个名为k8s-log-{cluster-id}的Project。
7、单击下一步,完成创建。
1、登录日志服务控制台。
2、在左侧导航栏中,选择市场 > 应用目录。
3、在阿里云应用页签下,单击ack-node-problem-detector。
4、在参数页签下,修改eventer节点中的相关信息。
sinks:
sls:
enabled: true
# If you want the monitoring results to be notified by sls, set enabled to true.
topic: "my-cluster"
project: "{sls-project-name}"
# You can view the project information by logging in to the
# SLS console. Please fill in the name of the project here.
# eg: your project name is k8s-log-cc18a5f3443dhdss22654da,
# then you can fill k8s-log-cc18a5f3443dhdss22654da to project label.
logstore: "k8s-event"
# You can view the project information by logging in to the
# SLS console. Please fill the logstore address in here.
创建K8s事件中心并部署Eventer和NodeProblemDetector后,即可使用K8s事件中心,包括查看事件总览、查询事件详情、查看Pod生命周期、配置告警和自定义查询等。
在左边导航栏运维管理标签下,单击事件列表,可以进行如下操作。