worker-group

by dariobit

Helm chartv0.3.7Verified publisher

Set of workers that do not expose a service

About this chart

worker-group

Generic helm chart to create worker applications.

Introduction

This chart creates workers with commonly used Kubernetes resources using the Helm package manager. The goal is to allow the consumers to toggle resources that are common in most deployment scenarios.

Essential resources

These resources will always be provisioned, as they are essential to define what we consider an "application".

  • deployment

Every element defined in the workers list will create a different deployment, without a service, as such workloads are expected to run indefinitely without network traffic.

Togglable resources

These resources can be configured or totally skipped depending on your business needs.

  • configmap
    • The attributes defined in config will automatically be loaded as environment variables to the target pod.
  • externalsecret -> secret
    • An external secret can be defined with the externalSecret setting. Its generated secret's data values will be loaded as environment variables to the target pod.
  • hpa
    • Horizontal automatic scaling rules of pods. Can be defined with the autoscaling setting.
  • poddisruptionbudget
    • Limit the number of concurrent disruptions for the application. Defined with podDisruptionBudget.
  • serviceaccount
    • Configure a service account for the pods. Defined with serviceAccount.
  • vpa
    • Set up vertical pod autoscaling. Defined with vpa.

Installing the Chart

Add the parcellab charts repo:

helm repo add parcellab https://charts.parcellab.dev

Install the chart:

helm install --name my-worker-group-name parcellab/microservice

Uninstalling the Chart

To delete the deployed chart:

helm uninstall my-worker-group-name

The command removes all the Kubernetes components associated with the chart and deletes the release.

Updating the Chart

You can update the chart values and trigger a pod reload. If the configmap changes, it will automatically retrieve the new values.

helm upgrade -f values.yaml my-worker-group-name parcellab/worker-group

Deploy worker-group with OpenTenant

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