k8s-event-logger-operator:k8s事件记录器操作员

  • k9_845383
    了解作者
  • 104.7KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 18:57
    上传日期
k8s事件记录器操作员 该操作员创建一个记录pod,将corev1.Event信息记录为结构化json日志。 crd允许配置要记录的事件。 安装 操作员 操作员不知所措。 helm upgrade --install eventlogger ./helm/ 自定义资源定义(CRD) apiVersion : eventlogger.bakito.ch/v1 kind : EventLogger metadata : name : example-eventlogger spec : kinds : - name : DeploymentConfig # the kind of the event source to be logged apiGroup : apps.openshift.io # optional eventTypes : # o
k8s-event-logger-operator-master.zip
内容介绍
[![Go](https://github.com/bakito/k8s-event-logger-operator/actions/workflows/go.yml/badge.svg)](https://github.com/bakito/k8s-event-logger-operator/actions/workflows/go.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/bakito/k8s-event-logger-operator)](https://goreportcard.com/report/github.com/bakito/k8s-event-logger-operator) [![GitHub Release](https://img.shields.io/github/release/bakito/k8s-event-logger-operator.svg?style=flat)](https://github.com/bakito/k8s-event-logger-operator/releases) [![Coverage Status](https://coveralls.io/repos/github/bakito/k8s-event-logger-operator/badge.svg?branch=master)](https://coveralls.io/github/bakito/k8s-event-logger-operator?branch=master) # k8s event logger operator This operator creates a logging pod that logs corev1.Event information as structured json log. The crd allows to configure the events to be logged. ## Installation ### Operator The operator is insalled with helm. ```bash helm upgrade --install eventlogger ./helm/ ``` ### Custom Resource Definition (CRD) ```yaml apiVersion: eventlogger.bakito.ch/v1 kind: EventLogger metadata: name: example-eventlogger spec: kinds: - name: DeploymentConfig # the kind of the event source to be logged apiGroup: apps.openshift.io # optional eventTypes: # optional - Normal - Warning reasons: # optional - DeploymentCreated - ReplicationControllerScaled matchingPatterns: # optional - regexp pattern to match event messages - .* skipOnMatch: false # optional - skip events where messages match the pattern. Default false eventTypes: # optional - define the event types to log. If no types are defined, all events are logged - Normal - Warning labels: # optional - additional labels for the pod name: value annotations: # optional - additional annotations for the pod name: value scrapeMetrics: false # optional att prometheus scrape metrics annotation to the pod. Default false namespace: "ns" # optional - the namespace to listen the events on. Default the current namespace nodeSelector: # optional - a node selector for the logging pod. key: value serviceAccount: "sa" # optional - if a custom ServiceAccount should be used for the pod. Default ServiceAccount is automatically created logFields: # optional - map if custom log field names. Key then log field name / Value: the reflection fields to the value within the struct corev1.Event https://github.com/kubernetes/api/blob/master/core/v1/types.go - name: name path: - InvolvedObject - Name - name: kind path: - InvolvedObject - Kind - name: type path: - Type - name: some-static-value value: "" ```
评论
    相关推荐
    • json
      json
    • json
      json
    • json
      json
    • json
      json
    • json
      json Json用于检索商店中的物品以及授权和注册
    • json
      json
    • json
      json
    • JSON
      JSON
    • JSON viewer
      JSON Viewer是一款方便易用的Json格式查看器。Json格式的数据阅读性很差,如果数据量大的话再阅读方面会十分困难,有了这软件,问题就解决了,能够快速把Json字符串排列规则的树结构,支持对JSON字符串进行格式化...
    • Json
      Json