kubewatch is a Kubernetes watcher that currently publishes notification to Slack. Run it in your k8s cluster, and you will get event notifications in a slack channel.
$ helm install {YOUR_RELEASE_NAME} .
This chart bootstraps a kubewatch deployment on a Kubernetes cluster using the Helm package manager.
To install the chart with the release name my-release:
$ helm install --name my-release .
The command deploys kubewatch on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
The following table lists the configurable parameters of the kubewatch chart and their default values.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
affinity | node/pod affinities | None |
image.registry | Image registry | docker.io |
image.repository | Image repository | bitnami/kubewatch |
image.tag | Image tag | {VERSION} |
image.pullPolicy | Image pull policy | Always |
nameOverride | String to partially override kubewatch.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override kubewatch.fullname template with a string | nil |
nodeSelector | node labels for pod assignment | {} |
podAnnotations | annotations to add to each pod | {} |
podLabels | additional labesl to add to each pod | {} |
replicaCount | desired number of pods | 1 |
rbac.create | If true, create & use RBAC resources | true |
serviceAccount.create | If true, create a serviceAccount | true |
serviceAccount.name | existing ServiceAccount to use (ignored if rbac.create=true) | `` |
resources | pod resource requests & limits | {} |
dingtalk.enabled | Enable Dingtalk notifications | true |
dingtalk.token | Dingtalk bot token | "" |
dingtalk.sign | Dingtalk bot sign | "" |
slack.enabled | Enable Slack notifications | false |
slack.channel | Slack channel to notify | "" |
slack.token | Slack API token | "" |
hipchat.enabled | Enable HipChat notifications | false |
hipchat.url | HipChat URL | "" |
hipchat.room | HipChat room to notify | "" |
hipchat.token | HipChat token | "" |
mattermost.enabled | Enable Mattermost notifications | false |
mattermost.channel | Mattermost channel to notify | "" |
mattermost.username | Mattermost user to notify | "" |
mattermost.url | Mattermost URL | "" |
flock.enabled | Enable Flock notifications | false |
flock.url | Flock URL | "" |
webhook.enabled | Enable Webhook notifications | false |
webhook.url | Webhook URL | "" |
tolerations | List of node taints to tolerate (requires Kubernetes >= 1.6) | [] |
namespaceToWatch | namespace to watch, leave it empty for watching all | "" |
resourcesToWatch | list of resources which kubewatch should watch and notify slack | {pod: true, deployment: true} |
resourcesToWatch.pod | watch changes to Pods | true |
resourcesToWatch.deployment | watch changes to Deployments | true |
resourcesToWatch.replicationcontroller | watch changes to ReplicationControllers | false |
resourcesToWatch.replicaset | watch changes to ReplicaSets | false |
resourcesToWatch.daemonset | watch changes to DaemonSets | false |
resourcesToWatch.services | watch changes to Services | false |
resourcesToWatch.job | watch changes to Jobs | false |
resourcesToWatch.persistentvolume | watch changes to PersistentVolumes | false |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install . --name my-release \
--set=dingtalk.sign="XXX",dingtalk.token="XXXX-XXXX-XXXX"
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
$ helm install stable/kubewatch --name my-release -f values.yaml
Tip: You can use the default values.yaml
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
get token

Copy webhook and get https://oapi.dingtalk.com/robot/send?access_token={YOUR_TOKEN},{TOUR_TOKEN} is the token.
get sign

Copy the sign.
Use custom keywords or IP addresses(Optional)

If you don't want to use the sign, please set dingtalk.sign=''. Then you can use the custom keywords or IP addresses.
Open https://my.slack.com/services/new/bot to create a new Slack bot.
The API token can be found on the edit page (it starts with xoxb-).
Invite the Bot to your channel by typing /join @name_of_your_bot in the Slack message area.
Content type
Image
Digest
Size
31.8 MB
Last updated
almost 7 years ago
docker pull guoxudongdocker/kubewatch-chart