Skip to content
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

Container Checkpointing with CRIU in Kubernetes #2563

Open
vd2892001 opened this issue Jan 10, 2025 · 6 comments
Open

Container Checkpointing with CRIU in Kubernetes #2563

vd2892001 opened this issue Jan 10, 2025 · 6 comments

Comments

@vd2892001
Copy link

Container Checkpointing with CRIU in Kubernetes:
Kubernetes version: 1.28
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: Container Checkpointing with CRIU in Kubernetes
Host OS: ubuntu 22.04
CRI and version: CRI-O
criu : 4.0

enable_criu_support field in the CRI-O configuration file to true.

curl -sk -X POST “https://localhost:10250/checkpoint/default/nginx/nginx”
–key /etc/kubernetes/pki/apiserver-kubelet-client.key
–cacert /etc/kubernetes/pki/ca.crt
–cert /etc/kubernetes/pki/apiserver-kubelet-client.crt

error
ls -l /var/lib/kubelet/checkpoints/
ls: cannot access ‘/var/lib/kubelet/checkpoints/’: No such file or directory

Why doesn’t the checkpoint file appear in the directory? What configuration is needed to make it appear in the directory? Please help

@adrianreber
Copy link
Member

With Kubernetes 1.28 the feature is still marked as Alpha and needs to be explicitly enabled. Starting with Kubernetes 1.30 it defaults to on. You need to activate it.

@vd2892001
Copy link
Author

drop_infra_ctr = false
enable_criu_support = true
I have enabled it in the configuration

@adrianreber
Copy link
Member

You need to also enable it in Kubernetes.

@vd2892001
Copy link
Author

kube-apiserver.yaml: - --feature-gates=ContainerCheckpoint=true
kube-controller-manager.yaml: - --feature-gates=ContainerCheckpoint=true
kube-scheduler.yaml: - --feature-gates=ContainerCheckpoint=true
I activated it in kubenetes but still error

@adrianreber
Copy link
Member

You need to activate it also for the kubelet.

@vd2892001
Copy link
Author

vd2892001 commented Jan 10, 2025

How can I activate it? Can you guide me?
Can you guide me to enable it in kubelet?

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

No branches or pull requests

2 participants