kubewatch

by [riftbit]

Helm chartv3.2.16App 0.1.0Verified publisher

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

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

Common parameters

NameDescriptionValue
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{}
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-r398
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)[]
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{}
livenessProbe.enabledEnable livenessProbefalse
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe1
livenessProbe.failureThresholdFailure threshold for livenessProbe3
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbefalse
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations 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.

  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.2.16 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