microk8s-janitor

Automate rolling upgrades for HA MicroK8s clusters via SSH with stateful recovery.

4|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/bnaylor/agent_skills --skill microk8s-janitor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microk8s-janitor
Source: https://github.com/bnaylor/agent_skills/tree/main/microk8s-janitor
Command: npx skills add https://github.com/bnaylor/agent_skills --skill microk8s-janitor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the complex and risky process of performing rolling upgrades on High Availability MicroK8s clusters, ensuring minimal downtime and data integrity.

Core Features & Use Cases

  • Automated Rolling Upgrades: Safely upgrades MicroK8s nodes one by one, maintaining cluster quorum.
  • Cluster Discovery: Automatically identifies all nodes in the cluster starting from a single seed node.
  • Pre-flight Checks: Verifies cluster health before and after upgrades to ensure stability.
  • Stateful Recovery: Detects failed upgrade steps and allows for resumption.
  • Use Case: Upgrade a production MicroK8s cluster from version 1.28 to 1.29 without manual intervention, ensuring all services remain available throughout the process.

Quick Start

Use the microk8s-janitor skill to upgrade the cluster to the latest stable channel starting from node 192.168.1.10.

Frequently Asked Questions about microk8s-janitor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate rolling upgrades for a High Availability MicroK8s cluster?

You can automate MicroK8s HA cluster rolling upgrades by discovering topology from a seed node, running pre-flight checks, and executing sequential cordon, drain, upgrade, and uncordon cycles via SSH to maintain quorum.

Can I discover MicroK8s cluster nodes automatically from a single seed node?

Yes, MicroK8s cluster discovery can be automated from a single seed node. The process identifies all nodes in the topology, allowing you to run health checks and perform sequential rolling upgrades without manual node enumeration.

Does this MicroK8s upgrade process include pre-flight health checks?

Yes, the MicroK8s maintenance process includes pre-flight health checks. It verifies cluster health before and after upgrades to ensure stability, and detects failed steps to allow for stateful recovery and resumption.

What is the best way to handle node failures during Kubernetes rolling upgrades?

The best way to handle node failures during Kubernetes rolling upgrades is stateful recovery. This mechanism detects failed upgrade steps and allows the maintenance process to resume from the point of failure without restarting the entire sequence.

Can I use SSH automation to upgrade Ubuntu MicroK8s nodes without manual intervention?

Yes, you can use SSH automation to upgrade Ubuntu MicroK8s nodes without manual intervention. The process connects via SSH to perform sequential cordon, drain, upgrade, and uncordon cycles while maintaining high availability.