mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Cassandra example, use nodetool drain in preStop
This commit is contained in:
parent
744455c69d
commit
82241e4c0d
@ -37,7 +37,7 @@ spec:
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "PID=$(pidof java) && kill $PID && while ps -p $PID > /dev/null; do sleep 1; done"]
|
||||
command: ["/bin/sh", "-c", "nodetool drain"]
|
||||
env:
|
||||
- name: MAX_HEAP_SIZE
|
||||
value: 512M
|
||||
|
Loading…
Reference in New Issue
Block a user