Watch
0
0
Fork
You've already forked hyperhive
0

k8s: the queue's pod mounts the host unit's store in place

This commit is contained in:
atlas 2026-11-23 02:58:52 +01:00 • committed by maia
commit 140ee7f38a

View file

@ -20,7 +20,6 @@ let
deployCfg = config.services.hyperhive.deploy;
node = deployCfg.k8s;
controllerCfg = deployCfg.swarm-controller;
natsCfg = deployCfg.nats;
# The path of a unit's state directory in a pod, which ./render.nix mounts
# the claim at.
@ -31,11 +30,11 @@ let
controllerStateDir = "/var/lib/swarm-controller";
# `option` is the service's name under `services.hyperhive.deploy`. `state`
# is null for a service whose pod keeps nothing worth moving: no volume, an
# `emptyDir`, or a volume that starts empty with no gate.
# is null for a service with nothing to copy: no volume, an `emptyDir`, a
# volume that starts empty with no gate, or (the queue) the host unit's own
# directory, mounted into the pod.
#
# The claim is `<service>-state`, as ./render.nix and ../swarm-nats.nix name
# it.
# The claim is `<service>-state`, as ./render.nix names it.
stateTable = {
swarm-controller = {
option = "swarm-controller";
@ -52,11 +51,7 @@ let
};
swarm-nats = {
option = "nats";
state = {
mount = natsCfg.storeDir;
hostPath = "/var/lib/nixos-containers/swarm-nats${natsCfg.storeDir}";
excludes = [ ];
};
state = null;
};
swarm-notify-router = {
option = "notify-router";