k8s集群驱逐node节点上的pod
Posted givenchy_yzl
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了k8s集群驱逐node节点上的pod相关的知识,希望对你有一定的参考价值。
[root@k8s-master1 ~]# kubectl drain k8s-node2 --delete-local-data --force --ignore-daemonsets
node/k8s-node2 already cordoned
WARNING: ignoring DaemonSet-managed Pods: efk/fluentd-es-nfgbj, ingress-nginx/nginx-ingress-controller-cpxtl, kube-system/calico-node-2gp4h, kube-system/kube-proxy-c97lr
evicting pod cattle-system/rancher-webhook-65f558c486-gvl2z
evicting pod default/tools-5b5cb759df-gx25k
evicting pod storage-class/nfs-client-provisioner-554cc7d84d-cjjhq
evicting pod cattle-system/rancher-77cc4f9d85-7gfz7
evicting pod cattle-system/rancher-77cc4f9d85-qhjx2
evicting pod cattle-system/rancher-77cc4f9d85-c2wkf
evicting pod default/jenkins-0
evicting pod know-system/know-system-654c445b68-gwmdw
evicting pod know-system/know-system-654c445b68-4dl9x
evicting pod fleet-system/fleet-controller-79554fcbf5-nfxgz
evicting pod fleet-system/gitjob-568c57cfb9-5kdcg
evicting pod prod-shixuetong/shixuetong-stu-prod-68ddb656d5-m99dp
evicting pod rancher-operator-system/rancher-operator-595ddc6db9-lblp5
evicting pod know-system/know-system-654c445b68-qqdlq
I0624 11:37:40.603111 19088 request.go:645] Throttling request took 1.056620837s, request: GET:https://apiserver.cluster.local:6443/api/v1/namespaces/fleet-system/pods/fleet-controller-79554fcbf5-nfxgz
pod/nfs-client-provisioner-554cc7d84d-cjjhq evicted
pod/rancher-webhook-65f558c486-gvl2z evicted
pod/gitjob-568c57cfb9-5kdcg evicted
I0624 11:37:50.603127 19088 request.go:645] Throttling request took 1.448417058s, request: GET:https://apiserver.cluster.local:6443/api/v1/namespaces/know-system/pods/know-system-654c445b68-gwmdw
pod/rancher-77cc4f9d85-qhjx2 evicted
pod/rancher-operator-595ddc6db9-lblp5 evicted
I0624 11:38:00.802891 19088 request.go:645] Throttling request took 2.073397551s, request: GET:https://apiserver.cluster.local:6443/api/v1/namespaces/cattle-system/pods/rancher-77cc4f9d85-c2wkf
pod/fleet-controller-79554fcbf5-nfxgz evicted
pod/rancher-77cc4f9d85-7gfz7 evicted
I0624 11:38:11.803011 19088 request.go:645] Throttling request took 1.082543284s, request: GET:https://apiserver.cluster.local:6443/api/v1/namespaces/prod-shixuetong/pods/shixuetong-stu-prod-68ddb656d5-m99dp
pod/rancher-77cc4f9d85-c2wkf evicted
pod/know-system-654c445b68-qqdlq evicted
pod/shixuetong-stu-prod-68ddb656d5-m99dp evicted
pod/tools-5b5cb759df-gx25k evicted
pod/know-system-654c445b68-gwmdw evicted
pod/know-system-654c445b68-4dl9x evicted
pod/jenkins-0 evicted
node/k8s-node2 evicted
以上是关于k8s集群驱逐node节点上的pod的主要内容,如果未能解决你的问题,请参考以下文章