Skip to content

[Request]: Select the Kubernetes version for container cluster create #2508

Open

Description

@resker

Feature or enhancement request details

docs/cluster.md lists "Multiple cluster versions. Run different Kubernetes versions side-by-side without conflicts. Test compatibility across versions with ease." as a reason to use container cluster. Developers testing locally usually want to match the version they run in production, so choosing a version should be as easy as creating a cluster. Today only the default node image is pinned, tested and documented. Any other version means finding a kindest/node tag and digest in kind's release notes and passing it to --node-image, with nothing to say whether that version works with the bootstrapper.

I'd suggest a version flag backed by a small table of pinned images, one per upstream-supported minor (currently 1.35, 1.36 and 1.37, per the Kubernetes support policy):

container cluster create                            # newest supported minor (default)
container cluster create --kubernetes-version 1.36  # another supported minor
container cluster create --node-image <ref>         # anything else, as today
  • The table lives next to ClusterHelper.nodeImage and is updated the same way when kind publishes new images. Update the default cluster node image to Kubernetes 1.37.0 #2507 is the current example of that update.
  • --kubernetes-version and --node-image can't be combined. An image outside the table still works, with a warning that it isn't a tested version.
  • docs/cluster.md gets a table of the supported versions, generated from or checked against the same source.
  • Tests: unit tests for the table and flag handling, plus a single-node smoke test per supported minor in the cluster integration suite.

Questions before I write it:

  1. Is aligning with the upstream support matrix sufficient?
  2. A flag gives the best experience, but would you prefer a docs table instead?
  3. What interval or trigger would you want for the per-minor CI smoke test?

Happy to provide a PR based on your guidance.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. jglogan commented on Nov 13, 2026

    @jglogan
    Contributor

    @resker Thanks for the proposal and good questions.

    I'd like to defer to @katiewasnothere to look this over once she gets out of kubecon mode as she may have opinions here, but I'll assign the issue to you.

    In a past project where I did something similar with kind, I simply aggregated kind_version,image_ref pairs into a table that grew with every kind release.

    The tricky part is the Kubernetes and thus kindest/node have evolved in ways that require changes in the kind code, and container cluster would similarly need to account for this for any past and future versions we need to support.

  2. resker commented on Nov 13, 2026

    @resker
    Author

    Thanks @jglogan, I'm just shifting back from KubeCon mode myself. WRT the version-specific changes, the draft only lists versions that have been tested.

    I've put up a draft in #2510 so there's something concrete for @katiewasnothere to have a look at when back. It's two commits: the supported-versions table on its own, then the --kubernetes-version flag on top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions