heartbeat
by kfirfer
A Helm chart to periodically check the status of your services with heartbeat
About this chart
⚠️ Repo Archive Notice
As of Nov 13, 2020, charts in this repo will no longer be updated. For more information, see the Helm Charts Deprecation and Archive Notice, and Update.
heartbeat
heartbeat is a lightweight daemon that periodically check the status of your services and determine whether they are available.
DEPRECATION NOTICE
This chart is deprecated and no longer supported.
Introduction
This chart deploys heartbeat agents to all the nodes in your cluster via a DaemonSet.
By default this chart only ships a single output to a file on the local system. Users should set config.output.file.enabled=false and configure their own outputs as documented
Prerequisites
- Kubernetes 1.9+
Installing the Chart
To install the chart with the release name my-release, run:
$ helm install --name my-release stable/heartbeat
After a few minutes, you should see service statuses being written to the configured output, which is a log file inside the heartbeat container.
Tip: List all releases using
helm list
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 heartbeat chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | The image repository to pull from | docker.elastic.co/beats/heartbeat |
image.tag | The image tag to pull | 6.7.0 |
image.pullPolicy | Image pull policy | IfNotPresent |
rbac.create | If true, create & use RBAC resources | true |
rbac.serviceAccount | existing ServiceAccount to use (ignored if rbac.create=true) | default |
config | The content of the configuration file consumed by heartbeat. See the heartbeat documentation for full details | |
plugins | List of beat plugins | |
hostNetwork | If true, use hostNetwork | false |
extraVars | A map of additional environment variables | |
extraVolumes, extraVolumeMounts | Additional volumes and mounts, for example to provide other configuration files | |
resources.requests.cpu | CPU resource requests | |
resources.limits.cpu | CPU resource limits | |
resources.requests.memory | Memory resource requests | |
resources.limits.memory | Memory resource limits | |
priorityClassName | Priority class name | |
nodeSelector | Node Selector | |
tolerations | Pod's tolerations |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install --name my-release \
--set rbac.create=true \
stable/heartbeat
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install --name my-release -f values.yaml stable/heartbeat
Tip: You can use the default values.yaml
Deploy heartbeat with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has heartbeat 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 chartheartbeat is pinned at v8.6.3 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