Skip to content

houradvantage-setup.toml

Download houradvantage-setup.toml as it is.

deploy/kubernetes/houradvantage-setup.toml
# The cluster's listeners and endpoints, in the `hourctl apply` layout
# (see the example setup file in the Hour Advantage docs). The setup-job.yaml Job applies them through the
# gateway Service; they are kept in Postgres, so every pod follows.
#
# One device port, 8080, exposed by devices-service.yaml. Endpoints share it
# and are told apart by path, so more endpoints can be added later, here or
# through the admin API, with no manifest change. A listener on another port
# also needs that port in devices-service.yaml
# (`hourctl export lb k8s` prints the Service from the listeners).
#
# trusted_proxies: none. With externalTrafficPolicy: Local the peer a pod
# sees is the clock itself. Set it (before the first [section]) only behind
# a balancer that terminates connections and sends X-Forwarded-For: see
# the Kubernetes guide, Client addresses.
[[listener]]
id = "devices"
type = "http"
listen = "0.0.0.0:8080"
# "hold": a clock that calls in for the first time waits for approval.
# "allow" registers anything that reaches the port; use it only on a
# network strangers cannot reach.
[[endpoint]]
id = "office"
listener = "devices"
path = "/office"
package = "[email protected]"
new_devices = "hold"
options = { timezone = "America/Chicago" }