k8s: stt and ci-metrics start without a state gate
This commit is contained in:
parent
dcbfadd644
commit
658c7fe384
1 changed files with 296 additions and 309 deletions
|
|
@ -31,9 +31,8 @@ let
|
|||
controllerStateDir = "/var/lib/swarm-controller";
|
||||
|
||||
# `option` is the service's name under `services.hyperhive.deploy`. `state`
|
||||
# is null for a service with no state volume. `hostPath` is null where the
|
||||
# copy has no source: the speech-to-text cache is not moved, and the pod
|
||||
# starts with an empty one.
|
||||
# is null for a service whose pod keeps nothing worth moving: no volume, an
|
||||
# `emptyDir`, or a volume that starts empty with no gate.
|
||||
#
|
||||
# The claim is `<service>-state`, as ./render.nix and ../swarm-nats.nix name
|
||||
# it.
|
||||
|
|
@ -65,11 +64,7 @@ let
|
|||
};
|
||||
swarm-stt = {
|
||||
option = "stt";
|
||||
state = {
|
||||
mount = stateMount deployCfg.stt.unit;
|
||||
hostPath = null;
|
||||
excludes = [ ];
|
||||
};
|
||||
state = null;
|
||||
};
|
||||
swarm-review-classifier = {
|
||||
option = "review-classifier";
|
||||
|
|
@ -81,13 +76,7 @@ let
|
|||
};
|
||||
swarm-ci-metrics = {
|
||||
option = "ci-metrics";
|
||||
state = {
|
||||
mount = stateMount deployCfg.ci-metrics.unit;
|
||||
# A DynamicUser unit's state directory is under `private`, behind a
|
||||
# symlink at the path the unit names.
|
||||
hostPath = "/var/lib/private/swarm-ci-metrics";
|
||||
excludes = [ ];
|
||||
};
|
||||
state = null;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue