Helm chartv0.3.6App 0.3.1Verified publisher

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

ParameterDescriptionDefault
nameOverrideString to partially override hukz.fullname"hukz"
fullnameOverrideString to fully override hukz.fullname"hukz"
namespaceOverrideOverride the deployment namespace""
imagePullSecretsList of container registry secretse[]
nameName of the Release"hukz"
image.repositoryHukz image namefactly/hukz
image.tagHukz image tag0.2.0
image.pullPolicyHukz image pull policyIfNotPresent
replicaCountNumber of nodes (Valid only when autoscaling is disabled)1
autoscaling.enabledEnable Horizontal Pod Autoscalerfalse
autoscaling.minReplicasMinimum number of replicas for the HPA2
autoscaling.maxReplicasMaximum number of replicas for the HPA5
autoscaling.targetCPUUtilizationPercentageAverage CPU utilization percentage for the HPA80
autoscaling.targetMemoryUtilizationPercentageAverage Memory utilization percentage for the HPA80
podDisruptionBudget.minAvailablePod disruption minimum availablenil
podDisruptionBudget.maxUnavailablePod disruption maximum unavailablenil
podDisruptionBudget.labelsAdditional labels for poddisruptionbudget{}
podDisruptionBudget.annotationsAdditional annotations for poddisruptionbudget{}
createSecret.enabledCreates a secret with name Hukztrue
createSecret.postgresqlPostgresPasswordPostgreSQL admin password (used when postgresqlUsername is not postgres, in which casepostgres is the admin username)ClusterIP
createSecret.postgresqlPasswordPostgreSQL user password8001
createSecret.postgresqlReplicationPasswordReplication user password (overrides replication password)metrics
swagger.enabledEnable Metricsfalse
swagger.service.typeService HTTP portClusterIP
swagger.service.portKubernetes Service type for swagger7790
swagger.service.portNameKubernetes Service type for swaggerswagger
swagger.service.labelsAdditional labels for metrics service{}
swagger.service.annotationsAdditional annotations for metrics service{}
envEnvironment variables to pass for configurationcheck values.yaml for defaults
serviceAccount.createCreate Service accounttrue
serviceAccount.nameName for the service account"hukz"
serviceAccount.labelsAdditional labels for service account{}
serviceAccount.annotationsAdditional annotations for service account{}
podAnnotationsAnnotations for the podsnil
securityContextSecurity Context for the podsnil
service.typeService HTTP portClusterIP
service.portKubernetes Service type8000
service.portNameKubernetes Service typehttp
service.labelsAdditional labels for service{}
service.annotationsAdditional annotations for service{}
metrics.enabledEnable Metricsfalse
metrics.service.typeService HTTP portClusterIP
metrics.service.portKubernetes Service type for metrics8001
metrics.service.portNameKubernetes Service type for metricsmetrics
metrics.service.labelsAdditional labels for metrics service{}
metrics.service.annotationsAdditional annotations for metrics service{}
metrics.serviceMonitor.enabledEnable Service Monitor for Prometheus Operatorfalse
metrics.serviceMonitor.selectorSelector to select Pods"release: monitoring"
metrics.serviceMonitor.labelsAdditional labels for service monitor{}
metrics.serviceMonitor.annotationsAdditional annotations for service monitor{}
metrics.serviceMonitor.intervalInterval at which metrics should be scraped30s
metrics.serviceMonitor.schemeHTTP scheme to use for scrapinghttp
metrics.serviceMonitor.tlsConfigTLS configuration to use when scraping the endpoint{}
metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended30s
ingress.enabledEnable ingress controller resourcefalse
ingress.annotationsAdditional annotations for Ingress{}
ingress.labelsAdditional labels for Ingress{}
ingress.pathsPath within the host/
ingress.extraPathsIngress extra paths to prepend to every host configuration. Useful when configuring custom actions with AWS ALB Ingress Controller.[]
ingress.hostsList of hostnames[]
ingress.tlsTLS specification[]
resourcesResources allocation (Requests and Limits){}
readinessProbe.initialDelaySecondsReadiness Probe initial delay in seconds10
readinessProbe.timeoutSecondsReadiness Probe timeout in seconds5
readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
readinessProbe.failureThresholdWhen a probe fails, Kubernetes will how many times to try before giving up5
readinessProbe.periodSecondsHow often to perform the probe in seconds10
livenessProbe.initialDelaySecondsLiveness Probe initial delay in seconds10
livenessProbe.timeoutSecondsLiveness Probe timeout in seconds5
livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
livenessProbe.failureThresholdWhen a probe fails, Kubernetes will how many times to try before giving up5
livenessProbe.periodSecondsHow often to perform the probe in seconds10
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
postgresql.enabledInstalls Bitnami's chart for Postgresqltrue
postgresql.existingSecretUses an existing secret. Keep it as hukz if createSecret.enable is trueClusterIP
nats.enabledInstalls Bitnami's chart for NATStrue
nats.auth.enabledSwitch to enable/disable client authenticationtrue
nats.auth.userClient authentication user{}
nats.auth.passwordClient 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthukz is pinned at v0.3.6 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