[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

ulimit core size for specific pod(container) in Openshift




Hi,

Is there a way in openshift to configure ulimit core size(as 0) for a specific docker container ?


In docker, there is a argument like --core size=0 to "docker run" by which you can have core size for a specific docker container.

Is there some configuration available in openshift template for same?


Note:
Updating "kernel.core_pattern as |/bin/false" helps but if affects the Host (and other containers) as well.


Also, tried out these(as part of docker build), but all the below three fails to stop core getting generated.
1.
echo 'DumpCore=no' | tee -a /etc/systemd/system.conf
2.
echo '* hard core 0' | tee -a /etc/security/limits.conf
3.
echo 'ulimit -c 0' | tee -a /etc/profile

Please let me know whether any way exists in openshift / any suggestion with above approaches?


Thanks,
Saravana


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]