The odd time I have a statefulset pod that gets stuck in "Terminating" I am using the following command in node:
try {
k8sApi = kc.makeApiClient(k8s.AppsV1Api);
await k8sApi.deleteNamespacedStatefulSet("bob", "fvtt", undefined, undefined, 0);
} catch (e) {}
To remove the bad pod I use:
kubectl delete pods bob-0 --grace-period=0 --force
Is there a way in this sdk, to replicate the --force behaviour?
Thanks
Brad