Safely Drain a Node | Kubernetes
kubernetes.io › safely-drain-nodeAug 09, 2021 · It is then safe to bring down the node by powering down its physical machine or, if running on a cloud platform, deleting its virtual machine. First, identify the name of the node you wish to drain. You can list all of the nodes in your cluster with kubectl get nodes Next, tell Kubernetes to drain the node: kubectl drain <node name>
Kubernetes.Core — Ansible Documentation
docs.ansible.com › kubernetes › coreDec 21, 2021 · k8s_cluster_info – Describe Kubernetes (K8s) cluster, APIs available and their respective versions. k8s_cp – Copy files and directories to and from pod. k8s_drain – Drain, Cordon, or Uncordon node in k8s cluster. k8s_exec – Execute command in Pod. k8s_info – Describe Kubernetes (K8s) objects.