0.7.0-0.1.0 • Published 5 years ago

@helm-charts/bitnami-kubewatch v0.7.0-0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@helm-charts/bitnami-kubewatch

Kubewatch notifies your slack rooms when changes to your cluster occur

FieldValue
Repository Namebitnami
Chart Namekubewatch
Chart Version0.7.0
NPM Package Version0.1.0
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry and imagePullSecrets
##
# global:
#   imageRegistry: myRegistryName
#   imagePullSecrets:
#     - myRegistryKeySecretName

slack:
  enabled: true
  # Slack channel to notify
  channel: 'XXXX'
  # Slack bots token. Create using: https://my.slack.com/services/new/bot
  # and invite the bot to your channel using: /join @botname
  token: 'XXXX'

hipchat:
  enabled: false
  # room: ""
  # token: ""
  # url: ""
mattermost:
  enabled: false
  # channel: ""
  # url: ""
  # username: ""
flock:
  enabled: false
  # url: ""
webhook:
  enabled: false
  # url: ""

# Resources to watch
resourcesToWatch:
  deployment: true
  replicationcontroller: false
  replicaset: false
  daemonset: false
  services: false
  pod: true
  job: false
  persistentvolume: false

image:
  registry: 'docker.io'
  repository: 'bitnami/kubewatch'
  tag: '0.0.4'
  pullPolicy: 'Always'
  ## Optionally specify an array of imagePullSecrets.
  ## Secrets must be manually created in the namespace.
  ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  ##
  # pullSecrets:
  #   - myRegistryKeySecretName

rbac:
  # If true, create & use RBAC resources
  #
  create: true

serviceAccount:
  # Specifies whether a ServiceAccount should be created
  create: true
  # The name of the ServiceAccount to use.
  # If not set and create is true, a name is generated using the fullname template
  name:

resources:
  {}
  # limits:
  #   cpu: 100m
  #   memory: 300Mi
  # requests:
  #   cpu: 100m
  #   memory: 300Mi

# Affinity for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
# affinity: {}

# Tolerations for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# Node labels for pod assignment
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}

podAnnotations: {}
podLabels: {}
replicaCount: 1

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 install stable/kubewatch

Introduction

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

Installing the Chart

To install the chart with the release name my-release:

$ helm install stable/kubewatch --name my-release

The command deploys kubewatch on the Kubernetes cluster in the default configuration. The configuration 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.

Configuration

The following table lists the configurable parameters of the kubewatch chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
affinitynode/pod affinitiesNone
image.registryImage registrydocker.io
image.repositoryImage repositorybitnami/kubewatch
image.tagImage tag{VERSION}
image.pullPolicyImage pull policyAlways
nodeSelectornode labels for pod assignment{}
podAnnotationsannotations to add to each pod{}
podLabelsadditional labesl to add to each pod{}
replicaCountdesired number of pods1
rbac.createIf true, create & use RBAC resourcestrue
serviceAccount.createIf true, create a serviceAccounttrue
serviceAccount.nameexisting ServiceAccount to use (ignored if rbac.create=true)
resourcespod resource requests & limits{}
slack.enabledEnable Slack notificationstrue
slack.channelSlack channel to notify""
slack.tokenSlack API token""
hipchat.enabledEnable HipChat notificationsfalse
hipchat.urlHipChat URL""
hipchat.roomHipChat room to notify""
hipchat.tokenHipChat token""
mattermost.enabledEnable Mattermost notificationsfalse
mattermost.channelMattermost channel to notify""
mattermost.usernameMattermost user to notify""
mattermost.urlMattermost URL""
flock.enabledEnable Flock notificationsfalse
flock.urlFlock URL""
webhook.enabledEnable Webhook notificationsfalse
webhook.urlWebhook URL""
tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)[]
resourcesToWatchlist of resources which kubewatch should watch and notify slack{pod: true, deployment: true}
resourcesToWatch.podwatch changes to Podstrue
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.jobwatch changes to Jobsfalse
resourcesToWatch.persistentvolumewatch changes to PersistentVolumesfalse

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install stable/kubewatch --name my-release \
  --set=slack.channel="#bots",slack.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

Create a Slack bot

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.

0.7.0-0.1.0

5 years ago

0.6.1-0.1.0

5 years ago

0.6.0-0.1.0

5 years ago

0.5.3-0.1.0

5 years ago

0.5.2-0.1.0

5 years ago

0.5.0-0.1.0

5 years ago

0.4.2-0.1.0

5 years ago

0.4.1-0.1.0

5 years ago

0.4.0-0.1.0

5 years ago