Skip to content

CKS: node bootstrap drops the private registry and pause image on containerd 2.x #14896

In review

Description

@bhouse-nexthop

Problem

CKS node bootstrap only works with containerd 1.x config files. On a node template with containerd 2.x:

  • The private registry is never added. The setup script inserts the mirror and credentials with sed after [plugins."io.containerd.grpc.v1.cri".registry], a config version 2 table. containerd 2.x writes config version 3 (version 4 on 2.4+), where that table is [plugins.'io.containerd.cri.v1.images'.registry], so the sed matches nothing and nothing reports it.
  • The pause image from the ISO is never set. sed "s|sandbox_image = .*|...|" only knows the version 2 key. On 2.x the key is sandbox under pinned_images, so containerd keeps its built-in registry.k8s.io/pause and an offline node tries to pull it. upgrade-kubernetes.sh has the same sed.

Also, runcmd always runs containerd config default > /etc/containerd/config.toml, so a template that ships its own containerd config loses it.

Why it matters

Kubernetes 1.35 is the last release that supports containerd 1.x, and containerd 1.7 is end of life. CKS clusters can't go past 1.35 until node bootstrap works with containerd 2.x.

Seen with

containerd Config version Registry with a private registry set Pause image
1.7.36 2 added set
2.4.2 4 dropped; pull goes to https:// and fails with server gave HTTP response to HTTPS client left at the default

Expected

Node bootstrap adds the registry and pause image on containerd 1.7 and 2.x, and keeps a template's own containerd config when it is already set up for Kubernetes.

Activity

  1. github-actions commented on Dec 2, 2026

    @github-actions

    Warning

    threat detection engine error
    The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs for details.

    🎯 Triage report

    CKS node bootstrap assumes containerd 1.x config files. On containerd 2.x, the sed that adds the private registry matches nothing, so the registry is dropped and pulls fall back to HTTPS. The pause image sed only knows the 1.x key, so the default registry.k8s.io/pause stays in place and offline nodes fail to pull it. runcmd also overwrites any containerd config a template ships with. The reporter tested containerd 1.7.36 and 2.4.2.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug Node bootstrap ignores the private registry and pause image on containerd 2.x
    Component component:cks Node bootstrap scripts in the CKS plugin
    Severity Severity:Major Air-gapped and private-registry clusters cannot bootstrap on containerd 2.x
    Labels type:bug, component:cks, Severity:Major
    Coding agent Needs more info Config format changes across containerd versions need a design choice (edit the new TOML, or generate config per version)

    🔗 Similar issues

    💡 Notes and suggestions
    • The report gives a table for containerd 1.7.36 and 2.4.2 that can serve as the test matrix.
    • Kubernetes 1.35 is the last release supporting containerd 1.x, per the report. Check this against the supported-version list before planning.

    Generated by Daily Issue Triage · copilot · haiku55 · ~6 AIC · ⊞ 3.8K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
    
  2. added this to the 4.22.3 milestone on Dec 2, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions