I use kubernetes to run es ,the container can not run ,and i get the error:bootstrap checks failed [1]: memory locking requested for elasticsearch process but memory is not locked

finally i solve it .it is the kubernetes make the problem .add
securityContext:
privileged: true
capabilities:
add:
- IPC_LOCK
to your rc file ,and you must make your api-server configfile the privileged=true too .
then you can run es successfully