Helm chartv0.3.3App 0.8.2MITVerified publisher

Deploy wharf-cmd, Wharf's execution engine, to Kubernetes.

About this chart

Wharf Helm chart

Homepage: https://github.com/iver-wharf/wharf-helm/blob/master/charts/wharf-cmd

Prerequisites

  • Wharf API, for wharf-cmd-watchdog and wharf-cmd-aggregator to communicate with.

Installing the Chart

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

helm repo add iver-wharf https://wharf.iver.com/wharf-helm
helm install wharf-cmd iver-wharf/wharf-cmd

Default images

GitHub repositoryQuay.io versionImage
iver-wharf/wharf-cmd"quay.io/iver-wharf/wharf-cmd:v0.8.2"

Configs disclaimer

The chart allows you to set YAML configs for the different components.

Please note that wharf-cmd does not support hot-reloading configs, so if you do a Helm upgrade with only configs changes, then Kubernetes only updates the ConfigMaps and will not restart the services for you.

To restart the services manually, you can delete the pods, and let the Deployment recreate them, like so:

$ kubectl delete pod -l app.kubernetes.io/name=wharf-cmd
pod "wharf-cmd-stage-aggregator-857b7d4949-4dgnk" deleted
pod "wharf-cmd-stage-provisioner-8b5b5f85c-b4fqj" deleted
pod "wharf-cmd-stage-watchdog-67d468df7f-278xn" deleted

Or delete only one of the components:

$ kubectl delete pod -l app.kubernetes.io/name=wharf-cmd,component=aggregator
pod "wharf-cmd-stage-aggregator-857b7d4949-4dgnk" deleted

$ kubectl delete pod -l app.kubernetes.io/name=wharf-cmd,component=provisioner
pod "wharf-cmd-stage-provisioner-8b5b5f85c-b4fqj" deleted

$ kubectl delete pod -l app.kubernetes.io/name=wharf-cmd,component=watchdog
pod "wharf-cmd-stage-watchdog-67d468df7f-278xn" deleted

Values

KeyTypeDefaultDescription
aggregator.affinityobject{}Read more (kubernetes.io/docs)
aggregator.configobjectcommon.configConfiguration for wharf-cmd added only to the aggregator component. This is merged with common.config, where values here take precedence. Read more (pkg.go.dev/github.com/iver-wharf/wharf-cmd)
aggregator.enabledbooltrueEnable the wharf-cmd-aggregator component.
aggregator.extraArgslist[]Arguments to add to the container. E.g [ "--another-arg", "value" ]
aggregator.extraEnvslist[]Environment variables to add to the container. Read more (kubernetes.io)
aggregator.imagestringcommon.imageDocker image of wharf-cmd-aggregator.
aggregator.imagePullPolicystringcommon.imagePullPolicyRead more (kubernetes.io/docs)
aggregator.imagePullSecretslistcommon.imagePullSecretsRead more (kubernetes.io/docs)
aggregator.loglevelstringcommon.loglevelLogging level for wharf-cmd-aggregator. Possible values: debug, info, warn, error, and panic.
aggregator.nodeSelectorobject{"kubernetes.io/os":"linux"}Selects which node to run on, based on node labels. Read more (kubernetes.io/docs)
aggregator.tolerationslist[]Read more (kubernetes.io/docs)
common.configobject{}Default configuration for all components. This is later merged with each per-component configs, where their config values take precedence. Read more (pkg.go.dev/github.com/iver-wharf/wharf-cmd)
common.imagestring"quay.io/iver-wharf/wharf-cmd:v0.8.2"Default Docker image for all components. The same image can be used for all wharf-cmd components as it uses the same binary to perform the different tasks.
common.imagePullPolicystring""Default imagePullPolicy for all components. Read more (kubernetes.io/docs)
common.imagePullSecretslist[]Default imagePullSecrets for all components. Read more (kubernetes.io/docs)
common.loglevelstring"debug"Default logging level for all components. Possible values: debug, info, warn, error, and panic.
fullnameOverridestring""String to fully override the pod and service names. If set, deployments, services, ingresses, etc, will use this name, and nameOverride will be ignored.
global.instanceIdstring"dev"Used by Wharf to differentiate between installations in the same namespace.
nameOverridestring""String to partially override the pod and service names. Will maintain the release name.
provisioner.affinityobject{}Read more (kubernetes.io/docs)
provisioner.configobjectcommon.configConfiguration for wharf-cmd added only to the provisioner component. This is merged with common.config, where values here take precedence. Read more (pkg.go.dev/github.com/iver-wharf/wharf-cmd)
provisioner.containerPortint5009Container port. This needs to correlate to the port that the application listens on. Read more (kubernetes.io/docs)
provisioner.enabledbooltrueEnable the wharf-cmd-provisioner component.
provisioner.extraArgslist[]Arguments to add to the container. E.g [ "--another-arg", "value" ]
provisioner.extraEnvslist[]Environment variables to add to the container. Read more (kubernetes.io)
provisioner.imagestringcommon.imageDocker image of wharf-cmd-provisioner.
provisioner.imagePullPolicystringcommon.imagePullPolicyRead more (kubernetes.io/docs)
provisioner.imagePullSecretslistcommon.imagePullSecretsRead more (kubernetes.io/docs)
provisioner.loglevelstringcommon.loglevelLogging level for wharf-cmd-provisioner. Possible values: debug, info, warn, error, and panic.
provisioner.nodeSelectorobject{"kubernetes.io/os":"linux"}Selects which node to run on, based on node labels. Read more (kubernetes.io/docs)
provisioner.servicePortint80Service port. Read more (kubernetes.io/docs)
provisioner.serviceTypestring"ClusterIP"Service type. Read more (kubernetes.io/docs)
provisioner.tolerationslist[]Read more (kubernetes.io/docs)
watchdog.affinityobject{}Read more (kubernetes.io/docs)
watchdog.configobjectcommon.configConfiguration for wharf-cmd added only to the watchdog component. This is merged with common.config, where values here take precedence. Read more (pkg.go.dev/github.com/iver-wharf/wharf-cmd)
watchdog.enabledboolfalseEnable the wharf-cmd-watchdog component.
watchdog.extraArgslist[]Arguments to add to the container. E.g [ "--another-arg", "value" ]
watchdog.extraEnvslist[]Environment variables to add to the container. Read more (kubernetes.io)
watchdog.imagestringcommon.imageDocker image of wharf-cmd-watchdog.
watchdog.imagePullPolicystringcommon.imagePullPolicyRead more (kubernetes.io/docs)
watchdog.imagePullSecretslistcommon.imagePullSecretsRead more (kubernetes.io/docs)
watchdog.loglevelstringcommon.loglevelLogging level for wharf-cmd-watchdog. Possible values: debug, info, warn, error, and panic.
watchdog.nodeSelectorobject{"kubernetes.io/os":"linux"}Selects which node to run on, based on node labels. Read more (kubernetes.io/docs)
watchdog.tolerationslist[]Read more (kubernetes.io/docs)
worker.configobjectcommon.configConfiguration for wharf-cmd added only to the worker component. This is merged with common.config, where values here take precedence. Read more (pkg.go.dev/github.com/iver-wharf/wharf-cmd)
worker.extraArgslist[]Arguments to add to the container. E.g [ "--another-arg", "value" ]
worker.extraEnvslist[]Environment variables to add to the container. Read more (kubernetes.io)
worker.imagestringcommon.imageDocker image of wharf-cmd-worker.
worker.imagePullPolicystringcommon.imagePullPolicyRead more (kubernetes.io/docs)
worker.imagePullSecretslistcommon.imagePullSecretsRead more (kubernetes.io/docs)
worker.varsobject{}Wharf built-in variables to use in a build. Each key-value pair will be available to all builds.

Changes

See the CHANGELOG.md file inside this Helm chart.


Maintained by Iver. Licensed under the MIT license.

Deploy wharf-cmd with OpenTenant

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