Adding patch command to forceful delete stateful pod (#9627)
This commit is contained in:
parent
59554e618c
commit
8f974b4df5
|
@ -67,6 +67,12 @@ If you're using any version of kubectl <= 1.4, you should omit the `--force` opt
|
||||||
kubectl delete pods <pod> --grace-period=0
|
kubectl delete pods <pod> --grace-period=0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If even after these commands the pod is stuck on `Unknown` state, use the following command to remove the pod from the cluster:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
kubectl patch pod <pod> -p '{"metadata":{"finalizers":null}}'
|
||||||
|
```
|
||||||
|
|
||||||
Always perform force deletion of StatefulSet Pods carefully and with complete knowledge of the risks involved.
|
Always perform force deletion of StatefulSet Pods carefully and with complete knowledge of the risks involved.
|
||||||
|
|
||||||
{{% /capture %}}
|
{{% /capture %}}
|
||||||
|
|
Loading…
Reference in New Issue