wharf-cmd
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 repository | Quay.io version | Image |
|---|---|---|
| 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
| Key | Type | Default | Description |
|---|---|---|---|
| aggregator.affinity | object | {} | Read more (kubernetes.io/docs) |
| aggregator.config | object | common.config | Configuration 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.enabled | bool | true | Enable the wharf-cmd-aggregator component. |
| aggregator.extraArgs | list | [] | Arguments to add to the container. E.g [ "--another-arg", "value" ] |
| aggregator.extraEnvs | list | [] | Environment variables to add to the container. Read more (kubernetes.io) |
| aggregator.image | string | common.image | Docker image of wharf-cmd-aggregator. |
| aggregator.imagePullPolicy | string | common.imagePullPolicy | Read more (kubernetes.io/docs) |
| aggregator.imagePullSecrets | list | common.imagePullSecrets | Read more (kubernetes.io/docs) |
| aggregator.loglevel | string | common.loglevel | Logging level for wharf-cmd-aggregator. Possible values: debug, info, warn, error, and panic. |
| aggregator.nodeSelector | object | {"kubernetes.io/os":"linux"} | Selects which node to run on, based on node labels. Read more (kubernetes.io/docs) |
| aggregator.tolerations | list | [] | Read more (kubernetes.io/docs) |
| common.config | object | {} | 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.image | string | "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.imagePullPolicy | string | "" | Default imagePullPolicy for all components. Read more (kubernetes.io/docs) |
| common.imagePullSecrets | list | [] | Default imagePullSecrets for all components. Read more (kubernetes.io/docs) |
| common.loglevel | string | "debug" | Default logging level for all components. Possible values: debug, info, warn, error, and panic. |
| fullnameOverride | string | "" | 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.instanceId | string | "dev" | Used by Wharf to differentiate between installations in the same namespace. |
| nameOverride | string | "" | String to partially override the pod and service names. Will maintain the release name. |
| provisioner.affinity | object | {} | Read more (kubernetes.io/docs) |
| provisioner.config | object | common.config | Configuration 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.containerPort | int | 5009 | Container port. This needs to correlate to the port that the application listens on. Read more (kubernetes.io/docs) |
| provisioner.enabled | bool | true | Enable the wharf-cmd-provisioner component. |
| provisioner.extraArgs | list | [] | Arguments to add to the container. E.g [ "--another-arg", "value" ] |
| provisioner.extraEnvs | list | [] | Environment variables to add to the container. Read more (kubernetes.io) |
| provisioner.image | string | common.image | Docker image of wharf-cmd-provisioner. |
| provisioner.imagePullPolicy | string | common.imagePullPolicy | Read more (kubernetes.io/docs) |
| provisioner.imagePullSecrets | list | common.imagePullSecrets | Read more (kubernetes.io/docs) |
| provisioner.loglevel | string | common.loglevel | Logging level for wharf-cmd-provisioner. Possible values: debug, info, warn, error, and panic. |
| provisioner.nodeSelector | object | {"kubernetes.io/os":"linux"} | Selects which node to run on, based on node labels. Read more (kubernetes.io/docs) |
| provisioner.servicePort | int | 80 | Service port. Read more (kubernetes.io/docs) |
| provisioner.serviceType | string | "ClusterIP" | Service type. Read more (kubernetes.io/docs) |
| provisioner.tolerations | list | [] | Read more (kubernetes.io/docs) |
| watchdog.affinity | object | {} | Read more (kubernetes.io/docs) |
| watchdog.config | object | common.config | Configuration 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.enabled | bool | false | Enable the wharf-cmd-watchdog component. |
| watchdog.extraArgs | list | [] | Arguments to add to the container. E.g [ "--another-arg", "value" ] |
| watchdog.extraEnvs | list | [] | Environment variables to add to the container. Read more (kubernetes.io) |
| watchdog.image | string | common.image | Docker image of wharf-cmd-watchdog. |
| watchdog.imagePullPolicy | string | common.imagePullPolicy | Read more (kubernetes.io/docs) |
| watchdog.imagePullSecrets | list | common.imagePullSecrets | Read more (kubernetes.io/docs) |
| watchdog.loglevel | string | common.loglevel | Logging level for wharf-cmd-watchdog. Possible values: debug, info, warn, error, and panic. |
| watchdog.nodeSelector | object | {"kubernetes.io/os":"linux"} | Selects which node to run on, based on node labels. Read more (kubernetes.io/docs) |
| watchdog.tolerations | list | [] | Read more (kubernetes.io/docs) |
| worker.config | object | common.config | Configuration 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.extraArgs | list | [] | Arguments to add to the container. E.g [ "--another-arg", "value" ] |
| worker.extraEnvs | list | [] | Environment variables to add to the container. Read more (kubernetes.io) |
| worker.image | string | common.image | Docker image of wharf-cmd-worker. |
| worker.imagePullPolicy | string | common.imagePullPolicy | Read more (kubernetes.io/docs) |
| worker.imagePullSecrets | list | common.imagePullSecrets | Read more (kubernetes.io/docs) |
| worker.vars | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartwharf-cmd is pinned at v0.3.3 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