Showing posts with label cordon. Show all posts
Showing posts with label cordon. Show all posts

Thursday, March 10, 2022

Kubernetes - Cordon/Drain a pod and node for upgrading OS within a K8s Cluster



See which pods are running on which nodes:
kubectl get pods -o wide


Evict the pods on a node and the node(s) too:
kubectl drain <nodename> --ignore-daemonsets


Watch as the node changes status:
kubectl get nodes -w


Schedule pods to the node after maintenance is complete:
kubectl uncordon <nodename>


Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...