webhook-broker-chart
by imyousuf
A Webhook Broker Helm Chart for Kubernetes
About this chart
Webhook Broker Chart
This is a Helm Chart for Webhook Broker project. There is an example of use of this via Terraform. The most important value to override is the DB URL for the project to startup. Check configuration documentation to understand what the broker.* configurations mean. Besides that all the other parameters are pretty standard Helm Chart values.
One of the configuration which is for CLI input instead of the above configuration is:
broker:
configFileWatchMode: "stop" # Possible values stop, restart, ignore
Depending on how you want the application to react pass a configuration; by default on any config map change the existing pod processes will stop, if its restart, the web endpoint and workers will restart and if its ignore, then the application will not watch for config file change and hence won't react either.
DB Pruning
Webhook Broker writes pruned messages to a local directory alongside GCS/S3 storage if broker.dbPruning.enabled is set to true. This local output is intended strictly for testing and debugging purposes. Please note that local files exist only on the node where the pod is running and should not be relied upon for production durability or backup. To avoid requiring cloud-specific storage classes, we use a Kubernetes hostPath volume.
broker:
dbPruning:
enabled: true
cronSchedule: "*/10 * * * *"
pvStorage: 32Gi
pvReclaimPolicy: Delete
timeoutSeconds: 1800
config: |
[prune]
export-node-name=webhook-broker
message-retention-days=30
export-path=/mnt/ephemeral
remote-export-destination=s3
remote-export-url=s3://example-bucket
max-archive-file-size-in-mb=10
Deploy webhook-broker-chart with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has webhook-broker-chart 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 chartwebhook-broker-chart is pinned at v0.2.4 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