mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Cassandra example, use nodetool drain in preStop
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user