hermes

by TouK

Helm chartv0.6.0App 2.2.8Verified publisher

A Helm chart for Kubernetes of Hermes, a reliable and easy to use message broker built on top of Kafka.

About this chart

Hermes Helm Chart

Hermes is a message broker that greatly simplifies communication between services using publish-subscribe pattern. It is HTTP-native, exposing REST endpoints for message publishing as well as pushing messages to subscribers REST endpoints. Under the hood, Apache Kafka is used. (...)

TL;DR;

$ helm repo add touk https://helm-charts.touk.pl/public/
$ helm install my-release touk/hermes

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.0+
  • PV support on underlying infrastructure (if Kafka dependency is enabled)

Installing the Chart

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

$ helm install --name my-release touk/hermes

You can configure the chart with a couple of --set param=value with configuration parameters shown below, but using a file is recommended.

$ helm install --name my-release touk/hermes -f values.yaml

The chart contains 3 deployments - for frontend, consumers and managment components. The default configuration installs Kafka and Zookeeper as well.

Testing after installation

You can test your installation by running:

$ helm test my-release

It will create a group, topic, and a sample subscriber. Then it will send a message and check if it reaches the subscriber. The subscription will be removed afterwards, but the group and topic will be left intact as an example.

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.

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.

Configuration

ParameterDescriptionDefault
kafka.enabledIf True, Kafka is installed from a dependency charttrue
global.kafka.bootstrapServersKafka cluster address (if the dependency disabled)[]
global.kafka.nameName of a Kafka service without a release name (if the dependency disabled and server not provided)kafka
global.kafka.fullnameName of a Kafka service with a release name (an alternative to the above)null
global.kafka.portPort of a Kafka service (if the dependency disabled and server not provided)9092
kafka.zookeeper.enabledIf True, Zookeeper is installed from a dependency chart along with Kafkatrue
global.zookeeper.serversZookeeper cluster address (if the dependency disabled)[]
global.zookeeper.nameName of a Zookeeper service without a release name (if the dependency disabled and server not provided)zookeeper
global.zookeeper.fullnameName of a Zookeeper service with a release name (an alternative to the above)null
global.zookeeper.portPort of a Zookeeper service (if the dependency disabled and server not provided)2181
kafkaNamespaceThe prefix added to all Kafka topic names managed by Hermesnull
kafka.* kafka.zookeeper.*Kafka and Zookeeper dependencies' propertiesSee incubator/kafka chart
management.ingress.enabledfalse
management.ingress.annotationsUse this to restrict access to Mangement GUI{}
management.ingress.domainnull
management.ingress.host(Release.Name)-(Chart.Name)
frontend.ingress.enabledfalse
frontend.ingress.annotationsUse this to restrict access to Frontend API{}
frontend.ingress.domainnull
consumers.additionalConfigAdditional config values (mounted as additional properties file){}
consumers.secretConfigAdditional config values (mounted as a secret with properties file){}
consumers.additionalSecretFilesAdditional data mounted as separated files (with key as file name, and value as content, mind that value has to be base64 encoded){}
consumers.logbackConfigCustom logback.xml logging configuration
frontend.additionalConfigAdditional config values (mounted as additional properties file){}
frontend.secretConfigAdditional config values (mounted as a secret with properties file){}
frontend.additionalSecretFilesAdditional data mounted as separated files (with key as file name, and value as content, mind that value has to be base64 encoded){}
frontend.logbackConfigCustom logback.xml logging configuration
management.additionalConfigAdditional config values (mounted as additional yaml config file){}
management.secretConfigAdditional config values (mounted as additional yaml config file){}
management.additionalSecretFilesAdditional data mounted as separated files (with key as file name, and value as content, mind that value has to be base64 encoded){}
management.logbackConfigCustom logback.xml logging configuration

TODO

  • There is no Graphite configuration available yet.
  • Since security rules in Hermes require coding they are currently not available for configuration.

Deploy hermes with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hermes 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 charthermes is pinned at v0.6.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