keep the pods' runtime volume in memory
A service's RuntimeDirectory is a /run, which never reaches a disk; the pod's volume for it was an emptyDir on the node's disk.
This commit is contained in:
parent
0998c82555
commit
b1b95b5407
1 changed files with 10 additions and 7 deletions
|
|
@ -812,7 +812,9 @@ let
|
|||
}
|
||||
++ lib.optional (runtimeDir != null) {
|
||||
name = "runtime";
|
||||
emptyDir = { };
|
||||
# In memory, as the `/run` it stands for is: what a service keeps there
|
||||
# never reaches the node's disk.
|
||||
emptyDir.medium = "Memory";
|
||||
}
|
||||
++ lib.optional (stateDir != null) (
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue