问题1:
问题描述:k8s中Terminating状态pod不能删除
[root@master ~]# kubectl get pods -n ms NAME READY STATUS RESTARTS AGE portal-7895774cd7-vr5wg 0/1 Terminating 1 102m
解决方法:强制删除
[root@master ~]# kubectl delete pods portal-7895774cd7-vr5wg --grace-period=0 --force -n ms warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. pod "portal-7895774cd7-vr5wg" force deleted
问题2:
问题描述:k8s删除节点
[root@master k8s]# kubectl drain harbor --delete-local-data --force --ignore-daemonsets Flag --delete-local-data has been deprecated, This option is deprecated and will be deleted. Use --delete-emptydir-data. node/harbor cordoned WARNING: ignoring DaemonSet-managed Pods: kube-system/calico-node-8z2sz, kube-system/kube-proxy-64ljc evicting pod ms/eureka-1 pod/eureka-1 evicted node/harbor evicted [root@master k8s]# kubectl get nodes NAME STATUS ROLES AGE VERSION harbor Ready,SchedulingDisabled <none> 44m v1.20.7 [root@master k8s]# kubectl delete node harbor node "harbor" deleted
标签:node,kubectl,--,问题,harbor,master,解决,k8s From: https://www.cnblogs.com/yangmeichong/p/16628270.html