当前位置: 首页 > 工具软件 > kube-eventer > 使用案例 >

kube-eventer推送k8s日志到es里面

葛宪
2023-12-01
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    name: kube-eventer
  name: kube-eventer
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kube-eventer
  template:
    metadata:
      labels:
        app: kube-eventer
      annotations:
        scheduler.alpha.kubernetes.io/critical-pod: ''
    spec:
      dnsPolicy: ClusterFirstWithHostNet
      serviceAccount: kube-eventer
      containers:
        - image: registry.aliyuncs.com/acs/kube-eventer-amd64:v1.2.0-a4316bf-aliyun
          name: kube-eventer
          command:
            - "/kube-eventer"
            - "--source=kubernetes:https://kubernetes.default"
            ## .e.g,dingtalk sink demo
            ##- --sink=dingtalk:https://oapi.dingtalk.com/robot/send?access_token=key&&label=cluster1&level=Warning
            # - --sink=dingtalk:[your_webhook_url]&label=[your_cluster_id]&a
 类似资料: