Skip to content

Fix kubectl exec when using docker#14019

Merged
vitorsavian merged 2 commits intok3s-io:mainfrom
vitorsavian:fix-regression
Apr 30, 2026
Merged

Fix kubectl exec when using docker#14019
vitorsavian merged 2 commits intok3s-io:mainfrom
vitorsavian:fix-regression

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 03:05
@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.31%. Comparing base (ef3bb65) to head (7eb5cce).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14019   +/-   ##
=======================================
  Coverage   22.30%   22.31%           
=======================================
  Files         193      193           
  Lines       15639    15639           
=======================================
+ Hits         3489     3490    +1     
+ Misses      11670    11669    -1     
  Partials      480      480           
Flag Coverage Δ
unittests 22.31% <ø> (+<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 cbb7c2a into k3s-io:main Apr 30, 2026
93 of 94 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.

4 participants