cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 807729898c024b2e0c1c118fef1332dd74d73a6e
parent ee1bf5c2f2d6e9e3e0435d202e2b116c206ceb41
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 26 Sep 2024 23:01:15 +0200

Deploy kubernetes-event-exporter

Diffstat:
Mapps/base/kubernetes-event-exporter/release.yaml | 32++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/apps/base/kubernetes-event-exporter/release.yaml b/apps/base/kubernetes-event-exporter/release.yaml @@ -24,17 +24,21 @@ spec: headers: Content-Type: application/json User-Agent: "kube-event-exporter" - # layout: - # - streams: - # app: kube-api - # source: event-exporter - # message: "{{ .Message }}" - # reason: "{{ .Reason }}" - # type: "{{ .Type }}" - # count: "{{ .Count }}" - # kind: "{{ .InvolvedObject.Kind }}" - # name: "{{ .InvolvedObject.Name }}" - # namespace: "{{ .Namespace }}" - # component: "{{ .Source.Component }}" - # host: "{{ .Source.Host }}" - # labels: "{{ toJson .InvolvedObject.Labels}}" + layout: + streams: + - streams: + app: kube-api + source: event-exporter + message: "{{ .Message }}" + reason: "{{ .Reason }}" + type: "{{ .Type }}" + count: "{{ .Count }}" + kind: "{{ .InvolvedObject.Kind }}" + name: "{{ .InvolvedObject.Name }}" + namespace: "{{ .Namespace }}" + component: "{{ .Source.Component }}" + host: "{{ .Source.Host }}" + labels: "{{ toJson .InvolvedObject.Labels}}" + values: + - - "{{ mul .GetTimestampMs 1000000 }}" + - "severity={{ .Type }} namespace={{ .InvolvedObject.Namespace }} object={{ .InvolvedObject.Kind }}/{{ .InvolvedObject.Name }} reason={{ .Reason }} message={{ .Message }}"