Cluster Maintenance

Upgrading Kubernetes: rolling upgrades, version skew policy

to upgrade node :

  1. drain the node from all of the workload using kubectl drain node-01
    1. This will move the pods to another node and evict the node from any resources
    2. Mark this node as un-schedulable this way it is safer
  2. do the upgrade with the node and when it is done do kubectl uncordon node-01 this will mark the node as schedulable there is also kubectl cordon node-01 to mark the node and un-schedulable

Backup and restore: etcd backups, cluster snapshots

when backing up custer state we need to backup 3 things

Resources configs

ETCD

Troubleshooting: kubectl logs, describe, exec, events, etc.