sablier

by Sablier

Helm chartv1.9.0App 1.16.1Verified publisher

A free and open-source software to start workloads on demand and stop them after a period of inactivity.

About this chart

sablier

A free and open-source software to start workloads on demand and stop them after a period of inactivity.

Source Code

Get Repo Info

The chart is published both as an OCI artifact and as a classic Helm repository.

With OCI there is nothing to add, so you can go straight to installing. Inspect a chart with:

helm show chart oci://ghcr.io/sablierapp/helm-charts/sablier

To use the Helm repository instead:

helm repo add sablier https://sablierapp.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Installing the Chart

To install the chart with the release name my-release from the OCI registry (Helm 3.8+):

helm install my-release oci://ghcr.io/sablierapp/helm-charts/sablier --version 1.9.0

Or from the Helm repository:

helm install my-release sablier/sablier

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

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

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions. Until this chart's version reaches v1.0, there are no promises of backwards compatibility.

Configuration

Sablier's own options go into the config value. The chart renders it into a ConfigMap and mounts it at /etc/sablier/sablier.yml, the first path Sablier searches at startup:

config:
  provider:
    kubernetes:
      qps: 64
      burst: 128
  sessions:
    default-duration: 5m
  webhooks:
    endpoints:
      - url: https://uptime.example.com/api/push/xxxxxxxx
        events:
          - started
          - stopped

Every option from the configuration reference is accepted, including webhooks, which has no command-line flag.

Two keys behave differently. provider.name is passed as a command-line flag and setting it under config has no effect. logging.level defaults to the logLevel value, and config overrides it.

Options passed through extraArgs or extraEnv also take precedence over the file. Changing config or logLevel restarts the pods, because the pod template carries a checksum of the rendered file.

Values

KeyTypeDefaultDescription
configobject{}Sablier's configuration file, mounted at /etc/sablier/sablier.yml (see the Configuration section above)
deploymentAnnotationsobject{}Annotations for all deployed Deployments
deploymentLabelsobject{}Labels for all deployed Deployments
deploymentStrategyobject{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}Deployment strategy for all deployed Deployments
extraArgslist[]Extra CLI arguments appended to the sablier container args (e.g. - --server.metrics.enabled=true to expose Prometheus /metrics)
extraEnvlist[]Extra environment variables for the sablier container (e.g. TZ to control the local time used by sablier.running-hours windows)
extraVolumeMountslist[]Extra volume mounts for the sablier container (e.g. to mount custom themes loaded via --strategy.dynamic.custom-themes-path)
extraVolumeslist[]Extra volumes for the sablier pod (e.g. a configMap volume with custom themes for --strategy.dynamic.custom-themes-path)
image.repositorystring"sablierapp/sablier"Sablier image repository
image.tagstring""Sablier image tag (default) appVersion
imagePullPolicystring"IfNotPresent"Sablier imagePullPolicy
lifecycleobject{}Sablier container lifecycle hooks. The image has no shell, so use the native sleep action (Kubernetes >= 1.30) rather than an exec of sleep. A short preStop sleep keeps the old pod serving while Service endpoints are updated during rollouts and evictions.
livenessProbeobject{"failureThreshold":3,"httpGet":{"path":"/health","port":10000},"initialDelaySeconds":5,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":1}Sablier livenessProbe
logLevelstring"info"Sablier log level, rendered as logging.level into the config file. A logging.level set under config takes precedence.
nodeSelectorobject{}Node selector for all deployed pods
podAnnotationsobject{}Annotations for all deployed pods
podLabelsobject{}Labels for all deployed pods
priorityClassNamestring""PriorityClass name for all deployed pods
rbacobject{"cnpg":false,"otkRedis":false}Sablier's RBAC Configuration
rbac.cnpgboolfalseEnable CNPG integration necessary rights
rbac.otkRedisboolfalseEnable OT-CONTAINER-KIT Redis operator necessary rights
readinessProbeobject{"failureThreshold":3,"httpGet":{"path":"/health","port":10000},"initialDelaySeconds":5,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":1}Sablier readinessProbe
replicasint1Sablier's replicas
resourcesobject{}Resource limits and requests for sablier
tolerationslist[]Tolerations for all deployed pods

Deploy sablier with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sablier 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 chartsablier is pinned at v1.9.0 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