-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.yaml
More file actions
76 lines (74 loc) · 2.63 KB
/
Copy pathconfig.sample.yaml
File metadata and controls
76 lines (74 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
notifications:
default_group:
resources:
- name: coreApiEvents
excludeSelector: # use `excludeSelector` to exclude events that match one of the following
reasons: # list work as a `or`
- ApplyJob # Recurrent K3s HelmChart apply job
- Unhealthy
# - Scheduled
- SuccessfulCreate
- SuccessfulDelete
- Created
- AddedInterface
- Pulled
- Killing
involvedObjectKind: # list work as a `or`
- Job
- CronJob
# - Pod
labels: # kube-notify merge event labels (should be null) with involvedObject labels if is Pod
- key: job-name
# namespaces:
# - kube-system
# types:
# - Normal
- name: coreApiEvents
selector:
types:
- Error # includes PodTerminationErrors
- name: customResources
gotify:
url: https://gotify.example.local
token: CHANGEME
discord:
webhook: toto
username: kube-notify
avatar_url: changeme
mattermost:
webhook: https://chat.local/hooks/aaaaaaaaa
# username: kube-notify
# icon_url: https://kubernetes.io/images/k8s-10th-birthday.svg
# channel: Kube-notify
custom_group:
resources:
- name: customResources
selector: # elements work as "and" to filter custom resources
types: # list works as a "or"
- velero.io/v1/backups
labels: # list works as a "or"
- key: velero.io/schedule-name
value: custom-schedule
discord:
webhook: toto
username: kube-notify
# avatar_url: changeme
events:
coreApiEvents:
enabled: true # disable to not watch kubernetes core API "Events" resources
addPodTerminationErrors: true # parse all pod statuses to detect restart reasons as Errors and append to coreApiEvents
# pollingIntervalSeconds: 60 # Uncomment to change default
customResources:
- type: velero.io/v1/backups
# pollingIntervalSeconds: 60 # Uncomment to change default
namespaces: [velero]
includeFields:
# dict : `fieldName: path in yaml description of the resource/event`
Status: status.phase
lastTimestamp: 'status.completionTimestamp | status.startTimestamp | metadata.creationTimestamp'
- type: velero.io/v1/restores
# pollingIntervalSeconds: 60 # Uncomment to change default
namespaces: [velero]
includeFields:
Status: status.phase
lastTimestamp: 'status.completionTimestamp | status.startTimestamp | metadata.creationTimestamp'