Skip to content

[Release-1.36] Fix kubectl exec when using docker#14021

Merged
vitorsavian merged 2 commits intok3s-io:release-1.36from
vitorsavian:fix-regression-backport-v1.36
Apr 30, 2026
Merged

[Release-1.36] Fix kubectl exec when using docker#14021
vitorsavian merged 2 commits intok3s-io:release-1.36from
vitorsavian:fix-regression-backport-v1.36

Conversation

@vitorsavian
Copy link
Copy Markdown
Member

Proposed Changes

  • Bump the fix for cri-dockerd
  • Bump cri-tools to v1.36.0-k3s1
  • E2E test for cri-dockerd exec

Types of Changes

  • Bugfix
  • Bump

Verification

  • Exec k3s with docker enabled

  • After k3s got up, exec this command to see the response

root@test-server:/home/vsavian# kubectl exec -n kube-system deploy/traefik -- pwd
/
  • You can also create this yaml
apiVersion: v1
kind: Namespace
metadata:
  name: dnsutils
  labels:
    pod-security.kubernetes.io/enforce: privileged
    pod-security.kubernetes.io/enforce-version: v1.25
    pod-security.kubernetes.io/audit: privileged
    pod-security.kubernetes.io/audit-version: v1.25
    pod-security.kubernetes.io/warn: privileged
    pod-security.kubernetes.io/warn-version: v1.25
---
apiVersion: v1
kind: Pod
metadata:
  name: dnsutils
  namespace: dnsutils
spec:
  containers:
    - name: dnsutils
      image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3
      command:
        - sleep
        - "3600"
      imagePullPolicy: IfNotPresent
  restartPolicy: Always
  • and use this command
root@test-server:/home/vsavian# kubectl exec -n dnsutils -t dnsutils -- nslookup kubernetes.default
Server:		10.43.0.10
Address:	10.43.0.10#53

Name:	kubernetes.default.svc.cluster.local
Address: 10.43.0.1
  • crictl bump
root@test-server:/home/vsavian# ./k3s crictl --version
crictl github.com/k3s-io/containerd/v2 v1.36.0-k3s1

Testing

Linked Issues

User-Facing Change


Further Comments

Signed-off-by: Vitor Savian <vitor.savian@suse.com>
Signed-off-by: Vitor Savian <vitor.savian@suse.com>
@vitorsavian vitorsavian requested a review from a team as a code owner April 30, 2026 09:21
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 22.30%. Comparing base (d239025) to head (6af6eb0).
⚠️ Report is 2 commits behind head on release-1.36.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.36   #14021      +/-   ##
================================================
- Coverage         22.30%   22.30%   -0.01%     
================================================
  Files               193      193              
  Lines             15645    15645              
================================================
- Hits               3490     3489       -1     
- Misses            11675    11676       +1     
  Partials            480      480              
Flag Coverage Δ
unittests 22.30% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vitorsavian vitorsavian merged commit 0934730 into k3s-io:release-1.36 Apr 30, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants