Skip to content
Label reference

Label reference

Sablier discovers and manages your workloads through these sablier.* labels. Each label is documented below with its type, the version it was introduced in, and any provider-specific behaviour. See the compatibility matrix for an at-a-glance provider grid.

Applying labels

Attach the labels to the workload Sablier should manage. The mechanism differs per provider; the per-label notes below call out any provider-specific form.

services:
  whoami:
    image: containous/whoami
    labels:
      sablier.enable: "true"
      sablier.group: "my-group"

Labels

LabelDescription
sablier.enableOpts the instance into Sablier management.
sablier.groupAssigns the instance to one or more named groups.
sablier.ready-afterThe minimum settling delay after the instance first reports ready before Sablier treats it as ready.
sablier.ready-on-startTreats the instance as ready as soon as the start is dispatched, skipping the health check.
sablier.running-hoursA daily keep-warm window in local time.
sablier.running-daysRestricts the sablier.running-hours window to specific weekdays.
sablier.anti-affinityLists the group names this instance backs off from; it is forced idle while any listed group has an active session.
sablier.idle.replicasThe replica count when idle.
sablier.idle.cpuThe CPU limit applied when the session expires.
sablier.idle.memoryThe memory limit applied when the session expires.
sablier.active.replicasThe replica count restored when a new session is requested.
sablier.active.cpuThe CPU limit restored when a new session is requested.
sablier.active.memoryThe memory limit restored when a new session is requested.
sablier.idle.blkio-weightThe relative block I/O scheduling weight applied when idle.
sablier.active.blkio-weightThe relative block I/O scheduling weight restored when active.
sablier.idle.blkio-weight-deviceThe per-device I/O scheduling weight applied when idle.
sablier.active.blkio-weight-deviceThe per-device I/O scheduling weight restored when active.
sablier.idle.blkio-device-read-bpsThe per-device read throughput limit applied when idle (Docker byte units, e.g. 10m = 10 MB/s).
sablier.active.blkio-device-read-bpsThe per-device read throughput limit restored when active.
sablier.idle.blkio-device-write-bpsThe per-device write throughput limit applied when idle.
sablier.active.blkio-device-write-bpsThe per-device write throughput limit restored when active.
sablier.idle.blkio-device-read-iopsThe per-device read IOPS limit applied when idle.
sablier.active.blkio-device-read-iopsThe per-device read IOPS limit restored when active.
sablier.idle.blkio-device-write-iopsThe per-device write IOPS limit applied when idle.
sablier.active.blkio-device-write-iopsThe per-device write IOPS limit restored when active.

sablier.enable

Opts the instance into Sablier management. Any value other than true is ignored.

boolean
Required
Since v1.4.0

Example: "true"

Kubernetes must set this as a label (discovery uses a label selector), never an annotation. Proxmox LXC uses the sablier tag instead.

sablier.group

Assigns the instance to one or more named groups. A session for any of its groups starts the instance.

comma-separated list
Default: "default"
Since v1.4.0

Example: "team-a,team-b"

Kubernetes must set a multi-value list as an annotation. Proxmox LXC uses one sablier-group-<name> tag per group.

Learn more

sablier.ready-after

The minimum settling delay after the instance first reports ready before Sablier treats it as ready.

Go duration
Since v1.13.0

Example: "30s"

Learn more

sablier.ready-on-start

Treats the instance as ready as soon as the start is dispatched, skipping the health check.

boolean
Next release

Example: "true"

Learn more

sablier.running-hours

A daily keep-warm window in local time. Overnight windows like 22:00-06:00 span midnight.

`HH:MM-HH:MM`
Since v1.13.0

Example: "09:00-18:00"

Kubernetes must set the colon value as an annotation.

Learn more

sablier.running-days

Restricts the sablier.running-hours window to specific weekdays.

comma-separated weekdays
Default: every day
Next release

Example: "Mon,Tue,Wed,Thu,Fri"

Kubernetes must set the comma value as an annotation.

Learn more

sablier.anti-affinity

Lists the group names this instance backs off from; it is forced idle while any listed group has an active session.

comma-separated list
Next release

Example: "streaming"

Kubernetes must set a multi-value list as an annotation. Not supported on Proxmox LXC.

Learn more

sablier.idle.replicas

The replica count when idle. 0 stops the workload; 1 or more keeps it running with optional resource throttling.

integer
Default: `0` (stop)
Since v1.13.0

Example: "1"

Not supported on Proxmox LXC.

Learn more

sablier.idle.cpu

The CPU limit applied when the session expires. Requires sablier.idle.replicas >= 1.

decimal cores / Kubernetes quantity
Since v1.13.0

Example: "0.1"

Kubernetes uses a resource quantity (e.g. 100m). Not supported on Proxmox LXC.

Learn more

sablier.idle.memory

The memory limit applied when the session expires. Requires sablier.idle.replicas >= 1.

Docker units / Kubernetes quantity
Since v1.13.0

Example: "128m"

Kubernetes uses a resource quantity (e.g. 128Mi). Not supported on Proxmox LXC.

Learn more

sablier.active.replicas

The replica count restored when a new session is requested.

integer
Default: `1`
Since v1.13.0

Example: "2"

Not supported on Proxmox LXC.

Learn more

sablier.active.cpu

The CPU limit restored when a new session is requested.

decimal cores / Kubernetes quantity
Since v1.13.0

Example: "2.0"

Kubernetes uses a resource quantity (e.g. 2000m). Not supported on Proxmox LXC.

Learn more

sablier.active.memory

The memory limit restored when a new session is requested.

Docker units / Kubernetes quantity
Since v1.13.0

Example: "512m"

Kubernetes uses a resource quantity (e.g. 512Mi). Not supported on Proxmox LXC.

Learn more

sablier.idle.blkio-weight

The relative block I/O scheduling weight applied when idle.

integer `10`-`1000`
Next release

Example: "100"

Docker only.

Learn more

sablier.active.blkio-weight

The relative block I/O scheduling weight restored when active.

integer `10`-`1000`
Next release

Example: "500"

Docker only.

Learn more

sablier.idle.blkio-weight-device

The per-device I/O scheduling weight applied when idle.

`path:weight` list
Next release

Example: "/dev/sda:100"

Docker only; per-device limits require daemon API >= 1.55.

Learn more

sablier.active.blkio-weight-device

The per-device I/O scheduling weight restored when active.

`path:weight` list
Next release

Example: "/dev/sda:500"

Docker only; per-device limits require daemon API >= 1.55.

Learn more

sablier.idle.blkio-device-read-bps

The per-device read throughput limit applied when idle (Docker byte units, e.g. 10m = 10 MB/s).

`path:rate` list
Next release

Example: "/dev/sda:10m"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.active.blkio-device-read-bps

The per-device read throughput limit restored when active.

`path:rate` list
Next release

Example: "/dev/sda:100m"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.idle.blkio-device-write-bps

The per-device write throughput limit applied when idle.

`path:rate` list
Next release

Example: "/dev/sda:10m"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.active.blkio-device-write-bps

The per-device write throughput limit restored when active.

`path:rate` list
Next release

Example: "/dev/sda:100m"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.idle.blkio-device-read-iops

The per-device read IOPS limit applied when idle.

`path:iops` list
Next release

Example: "/dev/sda:100"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.active.blkio-device-read-iops

The per-device read IOPS limit restored when active.

`path:iops` list
Next release

Example: "/dev/sda:1000"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.idle.blkio-device-write-iops

The per-device write IOPS limit applied when idle.

`path:iops` list
Next release

Example: "/dev/sda:100"

Docker only; requires daemon API >= 1.55.

Learn more

sablier.active.blkio-device-write-iops

The per-device write IOPS limit restored when active.

`path:iops` list
Next release

Example: "/dev/sda:1000"

Docker only; requires daemon API >= 1.55.

Learn more