a pod with a state volume starts only on a migrated or fresh volume
This commit is contained in:
parent
7ff98d3c70
commit
142acad8b8
1 changed files with 175 additions and 46 deletions
|
|
@ -637,10 +637,15 @@ in
|
|||
cannot reach a unix socket inside a pod, so the gateway dials the
|
||||
listener on {option}`tcp.hostAddress`. The pod's state is its own
|
||||
volume, which starts empty: nothing moves the host's state directory
|
||||
into it.
|
||||
into it, and the pod does not start on it until `swarmctl migrate`
|
||||
marks it or
|
||||
{option}`services.hyperhive.deploy.swarm-controller.k8s.freshState`
|
||||
is set.
|
||||
'';
|
||||
};
|
||||
|
||||
k8s.freshState = import ./lib/fresh-state-option.nix { inherit lib; } "swarm-controller";
|
||||
|
||||
unit = lib.mkOption {
|
||||
type = lib.types.raw;
|
||||
readOnly = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue