a pod with a state volume starts only on a migrated or fresh volume
This commit is contained in:
parent
7a7491a85a
commit
7e15cd492b
1 changed files with 175 additions and 46 deletions
|
|
@ -360,10 +360,16 @@ in
|
|||
objects are deleted and the container returns. The transcript cache is
|
||||
in the container's state directory on the host, and in a volume of the
|
||||
cluster in a pod; neither moves with the service, so a transcript is
|
||||
made again after a switch.
|
||||
made again after a switch. The pod does not start on its empty volume
|
||||
until `swarmctl migrate` marks it or
|
||||
{option}`services.hyperhive.deploy.stt.k8s.freshState` is set.
|
||||
'';
|
||||
};
|
||||
|
||||
options.services.hyperhive.deploy.stt.k8s.freshState = import ./lib/fresh-state-option.nix {
|
||||
inherit lib;
|
||||
} "stt";
|
||||
|
||||
options.services.hyperhive.deploy.stt.unit = lib.mkOption {
|
||||
type = lib.types.raw;
|
||||
readOnly = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue