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.
[https://github.com/bitnami-labs/kubewatch]
$ docker run --name kubewatch bitnami/kubewatch:latest
- Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
- With Bitnami images the latest bug fixes and features are available as soon as possible.
- Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
- All our images are based on minideb a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading linux distribution.
- All Bitnami images available in Docker Hub are signed with Docker Content Trust (DTC). You can use
DOCKER_CONTENT_TRUST=1
to verify the integrity of the images. - Bitnami container images are released daily with the latest distribution packages available.
This CVE scan report contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the Bitnami Kubewatch Chart GitHub repository.
Bitnami containers can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.
NOTE: Debian 8 images have been deprecated in favor of Debian 9 images. Bitnami will not longer publish new Docker images based on Debian 8.
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.
0-rhel-7
,0.0.4-rhel-7-r82
(0/rhel-7/Dockerfile)0-debian-9
,0.0.4-debian-9-r291
,0
,0.0.4
,0.0.4-r291
,latest
(0/debian-9/Dockerfile)
Subscribe to project updates by watching the bitnami/kubewatch GitHub repo.
The Kubewatch instance can be customized by specifying the below environment variables on the first run:
KW_SLACK_CHANNEL
: Slack channel. No defaults.KW_SLACK_TOKEN
: Slack token. No defaults.KW_HIPCHAT_ROOM
: HipChat room. No defaults.KW_HIPCHAT_TOKEN
: HipChat token. No defaults.KW_HIPCHAT_URL
: HipChat URL. No defaults.KW_MATTERMOST_CHANNEL
: Mattermost channel. No defaults.KW_MATTERMOST_URL
: Mattermost URL. No defaults.KW_MATTERMOST_USERNAME
: Mattermost username. No defaults.KW_FLOCK_URL
: Flock URL. No defaults.KW_WEBHOOK_URL
: WEBHOOK URL. No defaults.
In addition to the above environment variables, you can mount your custom configuration file via docker volume or kubernetes config map.
For example, if you want to receive slack notifications for every change in every kubernetes resource you can do the following:
- Write this config file and name it kubewatch.yaml
handler:
slack:
token: YOUR_SLACK_TOKEN
channel: YOUR_SLACK_CHANNEL
resource:
deployment: true
replicationcontroller: true
replicaset: true
daemonset: true
services: true
pod: true
job: true
persistentvolume: true
namespace: true
secret: true
ingress: true
- Launch the Bitnami Kubewatch container mounting the previous configuration file:
$ docker run --name kubewatch \
--volume path/to/your/kubewatch.yaml:/opt/bitnami/kubewatch/.kubewatch.yaml \
bitnami/kubewatch:latest
or modify the docker-compose.yml
file present in this repository as shown:
kubewatch:
volumes:
- ./path/to/your/kubewatch.yaml:/opt/bitnami/kubewatch/.kubewatch.yaml
We'd love for you to contribute to this container. You can request new features by creating an issue, or submit a pull request with your contribution.
- Host OS and version
- Docker version (
docker version
) - Output of
docker info
- Version of this container
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
Copyright 2019 Bitnami
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.