kube-slack

by joaquinito2051

Helm chartv1.0.0App v4.1.1

Chart for kube-slack, a monitoring service for Kubernetes

About this chart

kube-slack

Chart for kube-slack, a monitoring service for Kubernetes.

Introduction

This chart adds a deployment, listening for cluster-wide pod failures and posting them to your slack channel. A cluster-wide RBAC is created by default, but can also be specified.

Installing the Chart

To install the chart with the release name my-release, configure an Incoming Webhook in Slack, note its url(webhook-url here) and run:

$ helm install <helm-repo>/kube-slack --set slackUrl=webhook-url --name my-release

$ helm install stable/kube-slack --set slackUrl=webhook-url --name my-release

Uninstalling the Chart

To uninstall/delete the my-release release:

$ helm delete my-release

Configuration

All configuration parameters are listed in values.yaml.

The environment values passed to kube-slack can be described in envVars parameter. At a minimum, the envVars.SLACK_URL value must be set.

RBAC

By default the chart will install the recommended RBAC roles and rolebindings.

To determine if your cluster supports this running the following:

$ kubectl api-versions | grep rbac

Details on how to enable RBAC can be found in the official documentation.

Deploy kube-slack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-slack 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 chartkube-slack is pinned at v1.0.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