k3s-cluster-maintenance

Ansible role that patches K3s nodes one at a time, safely

An Ansible role and playbook that applies OS updates across K3s master and worker nodes one by one: pre-flight and health checks, drains that respect disruption budgets, Longhorn storage checks and recovery waits, adaptive reboot handling and node restoration, for local runs or CI.

Trade-offs

  • Nodes are patched strictly in sequence to keep the cluster available, which makes a full pass slower than parallel upgrades.
  • It skips nodes when no updates are available, so routine runs do not drain anything needlessly.

Q&A1

Yes. It checks Longhorn volume health and waits for recovery before moving to the next node.

Reviews

Loading reviews

    More in Ansible

    See all 5 →
    • RemotePowerSelf-hosted fleet monitoring and remote management in one app
    • ansible-unifi-inventoryAnsible inventory plugin that discovers hosts from a UniFi controller
    • CrewshipTurns one Ubuntu server into a self-hosted fleet of AI coding agents
    • Cloud BenchSame benchmarks across clouds, with cost per point
    • ansible-static-lintFast offline companion to ansible-lint, with the same rules and output

    More in Kubernetes

    See all 13 →
    • Cost DeckKubernetes FinOps operator: cost per namespace, schedules and safe right-sizing
    • rocketplaneIOSelf-hosted Kubernetes observability with transaction-gated agent actions
    • KatesPerformance, chaos and security testing for Kafka on Kubernetes
    • piqcRead-only scanner for wasted GPU spend in Kubernetes inference clusters
    • containixcontainerd shim that runs Nix flakes on Kubernetes without container images
    • K8s-RightsizerApplies Kubernetes rightsizing recommendations, rolling back on failure

    More in Infra as code

    See all 12 →
    • FinFocusPrices Pulumi previews before deploy, with budgets enforced in CI
    • cdk-agcGarbage collector for unused AWS CDK assets, Docker images and temp folders
    • Proxmox-GitOpsGitOps automation for Linux containers on Proxmox VE
    • TerraducktelSelf-hosted Terraform and Helm orchestration, no SaaS
    • TerraTidySingle-binary quality platform for Terraform and Terragrunt
    • EndstateReinstall apps and restore settings on a fresh Windows PC