Skip to content

Delete statefulset - replicate kubectl delete pod blahblah --force --grace-period=0 #1506

@Daxcor69

Description

@Daxcor69

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions