Ninja Docs Help

Upgrade cluster

Revision

Date

Description

1.0

24.07.2024

Init Changelog

Introduction

This Article explains how to upgrade Kubernetes Cluster managed by MicroK8.

Requirements

  • Root access to all Cluster Nodes

Before you go

Instructions

To upgrade Kubernetes cluster follow steps below:

  1. Get nodes list:

    kubectl get nodes
  2. Drain one node:

    kubectl drain <node> --ignore-daemonsets --delete-local-data
  3. SSH on drained node:

    ssh <node>
  4. Run node upgrade with command below and wait until it’s done:

    sudo snap refresh microk8s --channel <version>/stable
  5. Verify node on node list (it should be in Ready status before going to next step):

    kubectl get nodes
  6. Uncordon node to allow schedule pods on it:

    kubectl uncordon <node>
Last modified: 17 February 2025