Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

Kubernetes Pod will restart after deleting

I created a pod that I want to delete but it does not seem te work.

I did all ready tried a lot of different things.

I do not have deployments or replica sets, as a lot of people suggest to delete those.

When i type: kubectl get all Only the pod and the service is visible, both of which will return upon deleting them.

When i type:

kubectl delete pods <pod-name> --grace-period=0 --force

The pod will come back again.

Is there something else I can do?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If pod not part of the deployment, rs, sts, ds, then it must be part of the static pod. Static pod name combines with node (i.e staticpod-node01). By default location of the static path is /etc/Kubernetes/manifest/. Doc: https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...