Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Kubernetes Events plugin #47

Merged
merged 6 commits into from
Aug 31, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions plugins/kubernetes_events.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Plugin Info
version: 0.0.1
title: Kubernetes Events
description: Kubernetes Events Parser
parameters:
namespaces:
label: Namespaces
description: An array of namespaces. Defaults to use all namespaces.
type: strings
default: []

# Set Defaults
# {{$namespaces := default [] .namespaces}}

# Pipeline Template
pipeline:
- type: k8s_event_input
- type: severity_parser
preset: none
parse_from: "$labels.event_type"
namespaces: {{ $namespaces }}
mapping:
info:
- ADDED
- MODIFIED
- Created
- DELETED
- BOOKMARK
- FailedPodSandBoxStatus
- SandboxChanged
- NodeAllocatableEnforced
- SuccessfulMountVolume
- SuccessfulAttachVolume
- FileSystemResizeSuccessful
- VolumeResizeSuccessful
- Starting
- NodeReady
- Pulling
- Pulled
- Started
- Killing
- Preempting
- ExceededGracePeriod
notice:
- Rebooted
- NodeNotReady
- ImageGCFailed
- ContainerGCFailed
- NodeNotSchedulable
- NodeSchedulable
warning:
- AlreadyMountedVolume
- BackOff
- ErrImageNeverPull
- Evicted
- FailedCreatePodSandBox
- FailedNodeAllocatableEnforcement
- FailedPodSandBoxStatus
- FailedPostStartHook
- FailedPreStopHook
- FailedSync
- FailedValidation
- FailedKillPod
- HostPortConflict
- InspectFailed
- InvalidDiskCapacity
- NetworkNotReady
- ProbeWarning
- Unhealthy
error:
- ERROR
- Failed
- FailedAttachVolume
- FailedCreatePodContainer
- FailedMapVolume
- FailedMountOnFilesystemMismatch
- FailedMount
- FailedScheduling
- FileSystemResizeFailed
- FreeDiskSpaceFailed
- KubeletSetupFailed
- VolumeResizeFailed
output: {{ .output }}