kubewatch

by felipegfalcao

Helm chartv3.5.0App 0.1.0

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.

About this chart

Kubewatch packaged by Bitnami

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.

Overview of Kubewatch

TL;DR

$ helm repo add robusta https://robusta-charts.storage.googleapis.com && helm repo update
$ helm install my-release robusta/kubewatch

Introduction

This chart bootstraps a kubewatch deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname template""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the the deployment(s)/statefulset(s)["sleep"]
diagnosticMode.argsArgs to override all containers in the the deployment(s)/statefulset(s)["infinity"]
extraDeployArray of extra objects to deploy with the release[]

Kubewatch parameters

NameDescriptionValue
image.registryKubewatch image registrydocker.io
image.repositoryKubewatch image repositorybitnami/kubewatch
image.tagKubewatch image tag (immutable tags are recommended)0.1.0-debian-10-r513
image.pullPolicyKubewatch image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
hostAliasesAdd deployment host aliases[]
slack.enabledEnable Slack notificationstrue
slack.channelSlack channel to notifyXXXX
slack.tokenSlack API tokenXXXX
hipchat.enabledEnable HipChat notificationsfalse
hipchat.roomHipChat room to notify""
hipchat.tokenHipChat token""
hipchat.urlHipChat URL""
mattermost.enabledEnable Mattermost notificationsfalse
mattermost.channelMattermost channel to notify""
mattermost.urlMattermost URL""
mattermost.usernameMattermost user to notify""
flock.enabledEnable Flock notificationsfalse
flock.urlFlock URL""
msteams.enabledEnable Microsoft Teams notificationsfalse
msteams.webhookurlMicrosoft Teams webhook URL""
webhook.enabledEnable Webhook notificationsfalse
webhook.urlWebhook URL""
smtp.enabledEnable SMTP (email) notificationsfalse
smtp.toDestination email address (required)""
smtp.fromSource email address (required)""
smtp.helloSMTP hello field (optional)""
smtp.smarthostSMTP server address (name:port) (required)""
smtp.subjectSource email subject""
smtp.auth.usernameUsername for LOGIN and PLAIN auth mech""
smtp.auth.passwordPassword for LOGIN and PLAIN auth mech""
smtp.auth.secretSecret for CRAM-MD5 auth mech""
smtp.auth.identityIdentity for PLAIN auth mech""
smtp.requireTLSForce STARTTLS. Set to true or false""
namespaceToWatchNamespace to watch, leave it empty for watching all""
resourcesToWatch.deploymentWatch changes to Deploymentstrue
resourcesToWatch.replicationcontrollerWatch changes to ReplicationControllersfalse
resourcesToWatch.replicasetWatch changes to ReplicaSetsfalse
resourcesToWatch.daemonsetWatch changes to DaemonSetsfalse
resourcesToWatch.servicesWatch changes to Servicesfalse
resourcesToWatch.podWatch changes to Podstrue
resourcesToWatch.jobWatch changes to Jobsfalse
resourcesToWatch.persistentvolumeWatch changes to PersistentVolumesfalse
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
lifecycleHooksfor the Kubewatch container(s) to automate configuration before or after startup{}
extraEnvVarsExtra environment variables to be set on Kubewatch container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

Kubewatch deployment parameters

NameDescriptionValue
replicaCountNumber of Kubewatch replicas to deploy1
podSecurityContext.enabledEnable Kubewatch containers' SecurityContextfalse
podSecurityContext.fsGroupSet Kubewatch containers' SecurityContext fsGroup""
containerSecurityContext.enabledEnable Kubewatch pods' Security Contextfalse
containerSecurityContext.runAsUserSet Kubewatch pods' SecurityContext runAsUser""
containerSecurityContext.runAsNonRootSet Kubewatch pods' SecurityContext runAsNonRoot""
resources.limitsThe resources limits for the Kubewatch container{}
resources.requestsThe requested resources for the Kubewatch container{}
startupProbe.enabledEnable startupProbefalse
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe1
startupProbe.failureThresholdFailure threshold for startupProbe3
startupProbe.successThresholdSuccess threshold for startupProbe1
livenessProbe.enabledEnable livenessProbefalse
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for l

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkubewatch is pinned at v3.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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