Commit c165e908 authored by Deimosfr's avatar Deimosfr

fixing Cassandra shutdown example to avoid data corruption

parent 1854d482
......@@ -34,6 +34,10 @@ spec:
capabilities:
add:
- IPC_LOCK
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "PID=$(pidof java) && kill $PID && while ps -p $PID > /dev/null; do sleep 1; done"]
env:
- name: MAX_HEAP_SIZE
value: 512M
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment