Preflight Checklist
Problem Description
The medium for the vault-env volume is currently hard-coded to be Memory. This seems to have always been the case for the webhook.
Using Memory as the medium means that the ~26mb for the vault-env binary counts against the container memory limit. I can't see a reason for this as the default over a normal emptyDir.
This may not seem like much but if you have a node maxed out at 110 pods and each of them is using a tempfs backed volume for vault-env then that is 2,860 mb of ram being used that could have easily been on disk with no real performance or stability impact that I am aware of.
Proposed Solution
- A top-level configuration that tells the webhook to not set
medium: Memory for a by default.
- A per-pod annotation that tells the webhook to not set
medium: Memory for a specific pod.
Alternatives Considered
No response
Additional Information
No response
Preflight Checklist
Problem Description
The
mediumfor thevault-envvolume is currently hard-coded to beMemory. This seems to have always been the case for the webhook.Using
Memoryas the medium means that the ~26mb for thevault-envbinary counts against the container memory limit. I can't see a reason for this as the default over a normalemptyDir.This may not seem like much but if you have a node maxed out at 110 pods and each of them is using a
tempfsbacked volume forvault-envthen that is 2,860 mb of ram being used that could have easily been on disk with no real performance or stability impact that I am aware of.Proposed Solution
medium: Memoryfor a by default.medium: Memoryfor a specific pod.Alternatives Considered
No response
Additional Information
No response