Previously my kubernetes pod was running as root and I was running ulimit -l <MLOCK_AMOUNT> in its startup script before starting its main program in foreground. However, I can no more run my pod as root, would you please know how can I set this limit now?
How to set max locked memory in a pod running as non root
1.4k Views Asked by Fabrice Jammes At
2
To be able to set it per specific
Pod, the way you did it before, unfortunatelly you need privilege escalation i.e. run your container as root.As far as I understand you're interested in setting it only per specific
Pod, not globally, right ? Because it can be done by changing docker configuration on a specific kubernetes node.This topic has already been raised in another thread and as you may read in James Brown's answer: