hukz
A simple, lightweight service written in Go to manage outgoing webhooks from any application.
About this chart
HUKZ
Helm works as a package manager to run pre-configured Kubernetes resources.
This a customizable Helm chart, ready to deploy a Hukz instance on your Kubernetes cluster.
Getting started
First of all, you will need a Kubernetes cluster up and running. If you are not familiar with how Kuberentes works or need some help with this step, please check the Kubernetes documentation.
Install kubectl
kubectl is the most commonly used CLI to handle a Kubernetes cluster. The installation instructions are available here.
Install helm
Helm CLI is a Command Line Interface which will automate chart management and installation on your Kubernetes cluster. To install Helm, follow the Helm installation instructions
Get Repo Info
helm repo add factly https://factly.github.io/helm-charts
helm repo update
See helm repo for command documentation.
Install Hukz chart
To install the chart with the release name my-release:
helm install my-release factly/hukz
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm uninstall my-release
Parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override hukz.fullname | "hukz" |
fullnameOverride | String to fully override hukz.fullname | "hukz" |
namespaceOverride | Override the deployment namespace | "" |
imagePullSecrets | List of container registry secretse | [] |
name | Name of the Release | "hukz" |
image.repository | Hukz image name | factly/hukz |
image.tag | Hukz image tag | 0.2.0 |
image.pullPolicy | Hukz image pull policy | IfNotPresent |
replicaCount | Number of nodes (Valid only when autoscaling is disabled) | 1 |
autoscaling.enabled | Enable Horizontal Pod Autoscaler | false |
autoscaling.minReplicas | Minimum number of replicas for the HPA | 2 |
autoscaling.maxReplicas | Maximum number of replicas for the HPA | 5 |
autoscaling.targetCPUUtilizationPercentage | Average CPU utilization percentage for the HPA | 80 |
autoscaling.targetMemoryUtilizationPercentage | Average Memory utilization percentage for the HPA | 80 |
podDisruptionBudget.minAvailable | Pod disruption minimum available | nil |
podDisruptionBudget.maxUnavailable | Pod disruption maximum unavailable | nil |
podDisruptionBudget.labels | Additional labels for poddisruptionbudget | {} |
podDisruptionBudget.annotations | Additional annotations for poddisruptionbudget | {} |
createSecret.enabled | Creates a secret with name Hukz | true |
createSecret.postgresqlPostgresPassword | PostgreSQL admin password (used when postgresqlUsername is not postgres, in which casepostgres is the admin username) | ClusterIP |
createSecret.postgresqlPassword | PostgreSQL user password | 8001 |
createSecret.postgresqlReplicationPassword | Replication user password (overrides replication password) | metrics |
swagger.enabled | Enable Metrics | false |
swagger.service.type | Service HTTP port | ClusterIP |
swagger.service.port | Kubernetes Service type for swagger | 7790 |
swagger.service.portName | Kubernetes Service type for swagger | swagger |
swagger.service.labels | Additional labels for metrics service | {} |
swagger.service.annotations | Additional annotations for metrics service | {} |
env | Environment variables to pass for configuration | check values.yaml for defaults |
serviceAccount.create | Create Service account | true |
serviceAccount.name | Name for the service account | "hukz" |
serviceAccount.labels | Additional labels for service account | {} |
serviceAccount.annotations | Additional annotations for service account | {} |
podAnnotations | Annotations for the pods | nil |
securityContext | Security Context for the pods | nil |
service.type | Service HTTP port | ClusterIP |
service.port | Kubernetes Service type | 8000 |
service.portName | Kubernetes Service type | http |
service.labels | Additional labels for service | {} |
service.annotations | Additional annotations for service | {} |
metrics.enabled | Enable Metrics | false |
metrics.service.type | Service HTTP port | ClusterIP |
metrics.service.port | Kubernetes Service type for metrics | 8001 |
metrics.service.portName | Kubernetes Service type for metrics | metrics |
metrics.service.labels | Additional labels for metrics service | {} |
metrics.service.annotations | Additional annotations for metrics service | {} |
metrics.serviceMonitor.enabled | Enable Service Monitor for Prometheus Operator | false |
metrics.serviceMonitor.selector | Selector to select Pods | "release: monitoring" |
metrics.serviceMonitor.labels | Additional labels for service monitor | {} |
metrics.serviceMonitor.annotations | Additional annotations for service monitor | {} |
metrics.serviceMonitor.interval | Interval at which metrics should be scraped | 30s |
metrics.serviceMonitor.scheme | HTTP scheme to use for scraping | http |
metrics.serviceMonitor.tlsConfig | TLS configuration to use when scraping the endpoint | {} |
metrics.serviceMonitor.scrapeTimeout | Timeout after which the scrape is ended | 30s |
ingress.enabled | Enable ingress controller resource | false |
ingress.annotations | Additional annotations for Ingress | {} |
ingress.labels | Additional labels for Ingress | {} |
ingress.paths | Path within the host | / |
ingress.extraPaths | Ingress extra paths to prepend to every host configuration. Useful when configuring custom actions with AWS ALB Ingress Controller. | [] |
ingress.hosts | List of hostnames | [] |
ingress.tls | TLS specification | [] |
resources | Resources allocation (Requests and Limits) | {} |
readinessProbe.initialDelaySeconds | Readiness Probe initial delay in seconds | 10 |
readinessProbe.timeoutSeconds | Readiness Probe timeout in seconds | 5 |
readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
readinessProbe.failureThreshold | When a probe fails, Kubernetes will how many times to try before giving up | 5 |
readinessProbe.periodSeconds | How often to perform the probe in seconds | 10 |
livenessProbe.initialDelaySeconds | Liveness Probe initial delay in seconds | 10 |
livenessProbe.timeoutSeconds | Liveness Probe timeout in seconds | 5 |
livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
livenessProbe.failureThreshold | When a probe fails, Kubernetes will how many times to try before giving up | 5 |
livenessProbe.periodSeconds | How often to perform the probe in seconds | 10 |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
affinity | Affinity for pod assignment | {} |
postgresql.enabled | Installs Bitnami's chart for Postgresql | true |
postgresql.existingSecret | Uses an existing secret. Keep it as hukz if createSecret.enable is true | ClusterIP |
nats.enabled | Installs Bitnami's chart for NATS | true |
nats.auth.enabled | Switch to enable/disable client authentication | true |
nats.auth.user | Client authentication user | {} |
nats.auth.password | Client authentication password | {} |
Environment Variables
The env block allows to configure any environment variables as documented on Hukz Configuration.
HUKZ_DATABASE_PASSWORD for eg is set with the following code in env:
- name: HUKZ_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: hukz
key: database_password
The above for example expects a secret with the name hukz to exist, with key specified as database_password. This would be the suggested way to add the HUKZ_DATABASE_PASSWORD. Other insecure way to add the HUKZ_DATABASE_PASSWORD is to add it like any other env variable like below:
- name: HUKZ_DATABASE_PASSWORD
value: PLEASE_CHANGE_ME
Deploy hukz with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hukz 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 charthukz is pinned at v0.3.6 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