Skip to content

chore(k8s): the homelab k3s server moves from v1.31 to a version inside kubectl's supported skew #2495

Closed as not planned

Description

@dan-petty

Problem or Motivation

devops k8s deploy-stack --stack devops warned on 2026-10-28: "kubectl version 1.37.1 is outside the supported skew for Kubernetes API server v1.31.4+k3s1. The supported server range is 1.36 to 1.38." The homelab cluster runs k3s v1.31.4, six minor versions behind the kubectl that the devcontainer pins. Kubernetes supports a kubectl one minor version from its server, so each devops k8s command runs outside that support, and the cluster misses the security fixes of the newer minor versions.

Proposed Solution & Architectural Design

  • Plan the k3s upgrade path one minor version at a time (k3s supports only single-minor upgrades), with the system-upgrade-controller or the documented manual path, and record the plan and the checks for each step in k8s/README.md.
  • Check each Helm chart and CRD the cluster runs (Argo CD, kube-prometheus-stack, Loki, Traefik, CloudNativePG if present, the NVIDIA device plugin) against each target version before that step.
  • The upgrade itself is a host change that the owner runs.

Target Subsystem

Homelab cluster (k8s/, host).

Existing Tool Considered

Rancher's system-upgrade-controller, which k3s documents for automated upgrades. Nothing is built.

Acceptance criteria

  • k8s/README.md holds the upgrade plan, with the check for each step.
  • After the owner runs it, devops k8s deploy-stack prints no skew warning.

Proposed design

Problem statement

The homelab k3s cluster runs v1.31.4. The devcontainer pins kubectl v1.37.1. Kubernetes supports kubectl within one minor version of the API server. Every devops k8s command runs outside the supported skew. The cluster also misses security fixes from newer minor versions. This issue records the upgrade plan in k8s/README.md so the owner can execute it.

Acceptance criteria

Requirement: Upgrade plan in README

k8s/README.md SHALL contain the k3s upgrade plan with the check for each step.

Scenario: Plan is present and complete

  • WHEN A reader opens k8s/README.md and finds the upgrade plan section
  • THEN The plan lists each minor-version step from v1.31 to the target, and names the check to run before that step.

Requirement: No skew warning after upgrade

After the owner runs the plan, devops k8s deploy-stack SHALL print no skew warning.

Scenario: Skew warning is gone

  • WHEN The owner completes the upgrade and runs devops k8s deploy-stack --stack devops
  • THEN The output contains no line that says the kubectl version is outside the supported skew.

Existing Tool Considered

No check has run. The k3s install script, documented by Rancher at https://docs.k3s.io, covers the need: it upgrades k3s to a named version on a node. It lacks no capability for this single-cluster, one-time upgrade. The body also names Rancher's system-upgrade-controller, which automates multi-cluster upgrades but adds a CRD and a controller deployment that this one-time, single-cluster upgrade does not need. No code is built in this repository; the deliverable is the plan document.

Key questions

  • What is the target k3s version?: The latest k3s release in the 1.36 to 1.38 range, matching kubectl 1.37.1. The owner picks the exact patch version from the k3s release page at execution time. (best practice) [sources: k8s/README.md]
    • Rejected: 1.36.x. Within skew but older than kubectl 1.37.1; fewer security fixes than 1.37.x.
    • Chosen: 1.37.x. Matches kubectl 1.37.1 exactly; within the supported skew of 1.36 to 1.38; latest security fixes in range.
    • Rejected: 1.38.x. Within skew but newer than kubectl 1.37.1; would require a kubectl update to stay within one minor version.
  • What upgrade mechanism does the plan use?: The k3s documented manual upgrade path. The owner runs the k3s install script with the target version on each node, one minor version at a time. (best practice) [sources: k8s/README.md]
    • Rejected: system-upgrade-controller. Adds a CRD and a controller deployment for a one-time, single-cluster upgrade. Cleanup is needed after the upgrade. Overkill for one cluster.
    • Chosen: k3s install script (manual). One command per node per step. No extra components. Documented by k3s. The owner runs it on the host.
  • What is the upgrade path (sequence of minor versions)?: v1.31 to v1.32, v1.32 to v1.33, v1.33 to v1.34, v1.34 to v1.35, v1.35 to v1.36, v1.36 to v1.37. k3s supports only single-minor upgrades. [sources: k8s/README.md]
  • Which Helm charts and CRDs must be checked against each target version?: Argo CD, k8s-monitoring, Loki, Traefik, NVIDIA DCGM Exporter, Argo Workflows, Gitea, Qdrant, Open WebUI, Pyroscope, Tempo, OpenTelemetry Collector, prometheus-operator-crds, prometheus, and grafana. The plan lists the helm template or kubectl apply --dry-run=server check for each chart at each target version. [sources: k8s/README.md]
  • Who runs the upgrade on the host?: The owner runs the upgrade. This repository delivers the plan document only. The owner executes each step on the homelab host. [sources: k8s/README.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/infra
    status/new
    value/low
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/infra. The task upgrades the k3s server version, which is infrastructure maintenance.
    • Priority: P3-Low. This is a homelab cluster and the skew warning is non-blocking; no production service is affected.
    • Value: Low. The cluster is a homelab; the warning is cosmetic and the security benefit is modest for a personal setup.
    • Effort: Medium. The upgrade spans multiple minor versions, each requiring chart and CRD compatibility checks plus documentation of the plan.
    • Related: docs(k8s): k8s/README.md describes the k3s homelab, its alloy log pipeline and its homelab-provided storage as they run #1648, which asks for a different change. Both touch k8s/README.md and the k3s homelab, but #1648 fixes existing documentation accuracy while the candidate plans and executes a multi-step version upgrade.
  3. added
    priority/p3-low
    type/chore
    scope/k8s
    and removed
    type/infra
    on Oct 28, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 30, 2026
  5. devops-cli-service commented on Oct 30, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 18a6e2b (see proposed design in issue body).

  6. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Staged: branch chore/2495-the-homelab-k3s-server-moves-from, draft pull request #3284. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. Write the k3s upgrade plan into k8s/README.md: 17032 tokens
    2. Hold the upgrade plan to its steps with a test: 19553 tokens

    The plan run made 1 model request(s), and used 68999 input tokens and 5052 output tokens. The model made no tool call.

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • contrived_test at group 2: The test only checks that strings written in group 1 stay in the README. It tests no behavior and fails only when someone edits the document text. Evidence: "A test reads k8s/README.md and fails when a step or its check is missing, so the plan cannot rot silently."
    • other at group 1: The chart list leaves out CloudNativePG and the Mattermost operator, which the chat stack runs. The issue asks for a check of each chart and CRD the cluster runs, and names CloudNativePG. Evidence: "| chat | Mattermost Team Edition on CloudNativePG (Mattermost) | mattermost, cnpg-system, mattermost-operator |"
  7. dan-petty commented on Nov 3, 2026

    @dan-petty
    OwnerAuthor

    This issue is closed as not planned. The k3s cluster upgrade belongs in dan-petty/homelab and is tracked by dan-petty/homelab#3.

  8. removed
    status/ready
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p3-lowscope/k8ssource/agenttype/chorevalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions