To troubleshoot pods, follow the steps:
- Edit all the data pods (pods starts with arangodb-prmr*), using command:
kubectl delete pod -n tcsa-system <podname>
Note: Run for all the three data pods. - Ensure that, all pods are terminated.
- If pods are taking longer time to repond, then terminate forcefully using command:
kubectl patch pod/<podname> -n tcsa-system --type json -p $'- op: remove\n path: /metadata/finalizers'
For example:kubectl patch pod/arangodb-prmr-kkmjqqxc-b542f9 -n tcsa-system --type json -p $'- op: remove\n path: /metadata/finalizers'
- After deleting all the terminating state pods, if the cluster is not running, run the following command:
kubectl delete pod/arangodb-prmr-kkmjqqxc-b542f9 -n tcsa-system --grace-period=0 --force