Elastic search pod goes into Crashloopback state¶
Check the logs of the elastic search pod that is in this state
kubectl -n aizen-infra logs aizen-elasticsearch-0
Following error will be seen
"Suppressed: java.io.IOException: No space left on device",
"\tat sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:?]",
"\tat sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62) ~[?:?]",
"\tat sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113) ~[?:?]",
"\tat sun.nio.ch.IOUtil.write(IOUtil.java:79) ~[?:?]",
"\tat sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:280) ~[?:?]",
Solution¶
Increase the PVC size of the elasticsearch pod, wait for couple of mins for the new size to take effect
kubectl -n aizen-infra edit pvc aizen-grafana-pvc-aizen-elasticsearch-0
kubectl -n aizen-infra get pvc |grep elastic
After the new size is shown in pvc then run the below command
kubectl -n aizen-infra delete pod aizen-elasticsearch-0