kubewatch
by [riftbit]
Kubewatch is a Kubernetes watcher that currently publishes notification to Slack.
About this chart
kubewatch
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.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/kubewatch
Introduction
This chart bootstraps a kubewatch deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release bitnami/kubewatch
The command deploys kubewatch on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Uninstalling the Chart
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.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override common.names.fullname template | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Kubewatch parameters
| Name | Description | Value |
|---|---|---|
image.registry | Kubewatch image registry | docker.io |
image.repository | Kubewatch image repository | bitnami/kubewatch |
image.tag | Kubewatch image tag (immutable tags are recommended) | 0.1.0-debian-10-r398 |
image.pullPolicy | Kubewatch image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
hostAliases | Add deployment host aliases | [] |
slack.enabled | Enable Slack notifications | true |
slack.channel | Slack channel to notify | XXXX |
slack.token | Slack API token | XXXX |
hipchat.enabled | Enable HipChat notifications | false |
hipchat.room | HipChat room to notify | "" |
hipchat.token | HipChat token | "" |
hipchat.url | HipChat URL | "" |
mattermost.enabled | Enable Mattermost notifications | false |
mattermost.channel | Mattermost channel to notify | "" |
mattermost.url | Mattermost URL | "" |
mattermost.username | Mattermost user to notify | "" |
flock.enabled | Enable Flock notifications | false |
flock.url | Flock URL | "" |
msteams.enabled | Enable Microsoft Teams notifications | false |
msteams.webhookurl | Microsoft Teams webhook URL | "" |
webhook.enabled | Enable Webhook notifications | false |
webhook.url | Webhook URL | "" |
smtp.enabled | Enable SMTP (email) notifications | false |
smtp.to | Destination email address (required) | "" |
smtp.from | Source email address (required) | "" |
smtp.hello | SMTP hello field (optional) | "" |
smtp.smarthost | SMTP server address (name:port) (required) | "" |
smtp.subject | Source email subject | "" |
smtp.auth.username | Username for LOGIN and PLAIN auth mech | "" |
smtp.auth.password | Password for LOGIN and PLAIN auth mech | "" |
smtp.auth.secret | Secret for CRAM-MD5 auth mech | "" |
smtp.auth.identity | Identity for PLAIN auth mech | "" |
smtp.requireTLS | Force STARTTLS. Set to true or false | "" |
namespaceToWatch | Namespace to watch, leave it empty for watching all | "" |
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.pod | Watch changes to Pods | true |
resourcesToWatch.job | Watch changes to Jobs | false |
resourcesToWatch.persistentvolume | Watch changes to PersistentVolumes | false |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Extra environment variables to be set on Kubewatch container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
Kubewatch deployment parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Kubewatch replicas to deploy | 1 |
podSecurityContext.enabled | Enable Kubewatch containers' SecurityContext | false |
podSecurityContext.fsGroup | Set Kubewatch containers' SecurityContext fsGroup | "" |
containerSecurityContext.enabled | Enable Kubewatch pods' Security Context | false |
containerSecurityContext.runAsUser | Set Kubewatch pods' SecurityContext runAsUser | "" |
containerSecurityContext.runAsNonRoot | Set Kubewatch pods' SecurityContext runAsNonRoot | "" |
resources.limits | The resources limits for the Kubewatch container | {} |
resources.requests | The requested resources for the Kubewatch container | {} |
livenessProbe.enabled | Enable livenessProbe | false |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 1 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | false |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customLivenessProbe | Override default liveness probe | {} |
customReadinessProbe | Override default readiness probe | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
| `priorityClassN |
Deploy kubewatch with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubewatch on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubewatch is pinned at v3.2.16 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply