I have a running DaemonSet
which is running on all nodes. I want to remove it from a node in order to completely drain it, as kubectl drain
doesn't get rid of them. Without deleting my DaemonSet
, what's a good way to temporarily remove those pods from the node? I've tried draining it and deleting the DaemonSet
pods, but the DaemonSet
will still reschedule them, disregarding that the node is set as Unschedulable: true
.
标签:
kubernetes
相关问题
- Microk8s, MetalLB, ingress-nginx - How to route ex
- How do I change the storage class of existing pers
- Use awslogs with kubernetes 'natively'
- Kubernetes coredns readiness probe failed
- Default certificate on Nginx-ingress
相关文章
- k8s 访问Pod 时好时坏
- Override env values defined in container spec
- How do I create a persistent volume claim with Rea
- How to obtain the enable admission controller list
- Difference between API versions v2beta1 and v2beta
- MountVolume.SetUp failed for volume “nfs” : mount
- How to save content of a configmap to a file with
- GKE does not scale to/from 0 when autoscaling enab
You need to use
--ignore-daemonsets
key when you drain kubernetes node:So, in order to drain kubernetes node with
DaemonSets
in cluster, you need to execute:If you need to Remove DaemonSet pod from a node completely, you can specify a
.spec.template.spec.nodeSelector
inDaemonSet
(the DaemonSet controller will create Pods on nodes which match that node selector) and set that label to all nodes except the one you need to completely drain.