sablier
by Sablier
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
| Key | Type | Default | Description |
|---|---|---|---|
| config | object | {} | Sablier's configuration file, mounted at /etc/sablier/sablier.yml (see the Configuration section above) |
| deploymentAnnotations | object | {} | Annotations for all deployed Deployments |
| deploymentLabels | object | {} | Labels for all deployed Deployments |
| deploymentStrategy | object | {"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"} | Deployment strategy for all deployed Deployments |
| extraArgs | list | [] | Extra CLI arguments appended to the sablier container args (e.g. - --server.metrics.enabled=true to expose Prometheus /metrics) |
| extraEnv | list | [] | Extra environment variables for the sablier container (e.g. TZ to control the local time used by sablier.running-hours windows) |
| extraVolumeMounts | list | [] | Extra volume mounts for the sablier container (e.g. to mount custom themes loaded via --strategy.dynamic.custom-themes-path) |
| extraVolumes | list | [] | Extra volumes for the sablier pod (e.g. a configMap volume with custom themes for --strategy.dynamic.custom-themes-path) |
| image.repository | string | "sablierapp/sablier" | Sablier image repository |
| image.tag | string | "" | Sablier image tag (default) appVersion |
| imagePullPolicy | string | "IfNotPresent" | Sablier imagePullPolicy |
| lifecycle | object | {} | 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. |
| livenessProbe | object | {"failureThreshold":3,"httpGet":{"path":"/health","port":10000},"initialDelaySeconds":5,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":1} | Sablier livenessProbe |
| logLevel | string | "info" | Sablier log level, rendered as logging.level into the config file. A logging.level set under config takes precedence. |
| nodeSelector | object | {} | Node selector for all deployed pods |
| podAnnotations | object | {} | Annotations for all deployed pods |
| podLabels | object | {} | Labels for all deployed pods |
| priorityClassName | string | "" | PriorityClass name for all deployed pods |
| rbac | object | {"cnpg":false,"otkRedis":false} | Sablier's RBAC Configuration |
| rbac.cnpg | bool | false | Enable CNPG integration necessary rights |
| rbac.otkRedis | bool | false | Enable OT-CONTAINER-KIT Redis operator necessary rights |
| readinessProbe | object | {"failureThreshold":3,"httpGet":{"path":"/health","port":10000},"initialDelaySeconds":5,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":1} | Sablier readinessProbe |
| replicas | int | 1 | Sablier's replicas |
| resources | object | {} | Resource limits and requests for sablier |
| tolerations | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsablier is pinned at v1.9.0 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