New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kata-with-k8s: Add cgroupDriver for containerd #4130
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@surajssd What issues are you seeing with systemd cgroupdriver? |
Here is a pod config I tried creating: apiVersion: v1
kind: Pod
metadata:
name: nginx-kata
spec:
runtimeClassName: kata
containers:
- name: nginx
image: nginx Pod stays in $ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-kata 0/1 ContainerCreating 0 2m48s @amshinde These are the logs from kubelet which shows why the pod creation failed:
The events related to the pod: $ kubectl get events
...
3s Normal Scheduled pod/nginx-kata Successfully assigned default/nginx-kata to fedora
0s Warning FailedCreatePodSandBox pod/nginx-kata Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = context deadline exceeded
0s Warning FailedCreatePodSandBox pod/nginx-kata Failed to create pod sandbox: rpc error: code = Unknown desc = failed to reserve sandbox name "nginx-kata_default_1643de63-a84a-4636-a561-416f4541537c_0": name "nginx-kata_default_1643de63-a84a-4636-a561-416f4541537c_0" is reserved for "3a0b9ebe70d0932d6d1d4e6841ba2ec9a7f9d001f531be6261392dcd6e2ffd1b"
0s Warning FailedCreatePodSandBox pod/nginx-kata Failed to create pod sandbox: rpc error: code = Unknown desc = failed to reserve sandbox name "nginx-kata_default_1643de63-a84a-4636-a561-416f4541537c_0": name "nginx-kata_default_1643de63-a84a-4636-a561-416f4541537c_0" is reserved for "3a0b9ebe70d0932d6d1d4e6841ba2ec9a7f9d001f531be6261392dcd6e2ffd1b" And these are the containerd logs:
|
This commit updates the "Run Kata Containers with Kubernetes" to include cgroupDriver configuration via "KubeletConfiguration". Without this setting kubeadm defaults to systemd cgroupDriver. Containerd with Kata cannot spawn conntainers with systemd cgroup driver. Fixes: kata-containers#4262 Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
surajssd
force-pushed
the
add-cgroup-driver-info
branch
from
May 16, 2022 12:03
07a9f21
to
0e2459d
Compare
@liubin done. |
/test |
cc: @GabyCT |
liubin
approved these changes
Jun 1, 2022
GabyCT
approved these changes
Jun 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit updates the "Run Kata Containers with Kubernetes" to include
cgroupDriver configuration via "KubeletConfiguration". Without this
setting kubeadm defaults to systemd cgroupDriver. Containerd with Kata
cannot spawn conntainers with systemd cgroup driver.