Skip to content

Commit

Permalink
add telegram and included reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
julisman committed Jun 3, 2020
1 parent 5606e0e commit 4d9955e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 13 deletions.
46 changes: 33 additions & 13 deletions warpin/siera-kube-watch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,50 @@ helm install siera-kube-watch -n [your namespace] warpincharts/siera-kube-watch
install with slack
```
helm install siera-kube-watch -n [your namespace] warpincharts/siera-kube-watch \
--set=config.slack.enabled="true",config.webhook.url="http://slackurl"
--set=config.slack.enabled="true",config.webhook.url="https://hooks.slack.com/services/TOKEN"
```

## Result
![GitHub Logo](example-webhook.png)
install with telegram
```
helm install siera-kube-watch -n [your namespace] warpincharts/siera-kube-watch \
--set=config.slack.enabled="true",config.webhook.url="https://api.telegram.org/botTOKEN/sendMessage?chat_id=-XX"
```

## Parameters

The following table lists the configurable parameters of the siera kube watch chart and their default values.

| Parameter | Description | Default |
|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| `metadata.name ` | Global name | `siera-kube-watch` |
| `image.repository` | Image repository | `warungpintar/siera-kube-watch` |
| `image.tag` | Image tag | `v1.0.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `config.webhook.enabled` | boolean to enable or disable webhook | `false` |
| `config.webhook.url` | url of webhook | `` |
| `config.slack.enabled` | boolean to enable or disable slack | `false` |
| `config.slack.url` | url of slack | `` |
| Parameter | Description | Default |
|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
| `metadata.name ` | Global name | `siera-kube-watch` |
| `image.repository` | Image repository | `warungpintar/siera-kube-watch` |
| `image.tag` | Image tag | `v1.0.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `config.webhook.enabled` | boolean to enable or disable webhook | `false` |
| `config.webhook.url` | url of webhook | `` |
| `config.slack.enabled` | boolean to enable or disable slack | `false` |
| `config.slack.url` | url of slack | `https://hooks.slack.com/services/TOKEN` |
| `config.telegram.enabled` | boolean to enable or disable slack | `false` |
| `config.telegram.token` | url of telegram api | `https://api.telegram.org/botTOKEN/sendMessage?chat_id=-XX`|
| `config.telegram.chat.id` | url of telegram api | `https://api.telegram.org/botTOKEN/sendMessage?chat_id=-XX`|
| `excluded.reasons` | In case you want to filter your event stream from specific reason, you can add that reason to excluded.reasons. | `[]` |
| `include.reasons` | In case you want to add normal reason to your event stream from specific reason. | `["ScalingReplicaSet", "Started", "Killing"]` |



Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

```
helm install siera-kube-watch -n [your namespace] -f values.yaml warpincharts/siera-kube-watch
```

## Result webhook
![GitHub Logo](result-webhook.png)

## Result slack
![GitHub Logo](result-slack.png)

## Result telegram
![GitHub Logo](result-telegram.png)

docker image size 35.2MB
Binary file added warpin/siera-kube-watch/result-slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added warpin/siera-kube-watch/result-telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
10 changes: 10 additions & 0 deletions warpin/siera-kube-watch/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@ stringData:
enabled: {{ .Values.config.slack.enabled }}
url: {{ .Values.config.slack.url }}
telegram:
enabled: {{ .Values.config.telegram.enabled }}
token: {{ .Values.config.telegram.url }}
chat.id: {{ .Values.config.chat.id }}
excluded.reasons: []
included.reasons: ["ScalingReplicaSet", "Started", "Killing"]

0 comments on commit 4d9955e

Please sign in to comment.