我们正在尝试使用 Kubernetes 容器检查点功能拍摄容器快照。
环境:minikube
运行时容器:crio
我们尝试了以下方法:
在 minikube 中启动一个新配置文件,设置 ContainerCheckpoint 功能标志:
minikube start --container-runtime=crio --feature-gates=ContainerCheckpoint=true -p criupoc
检查配置以确保功能门设置正确:
vim ~/.minikube/profiles/criupoc/config.json
创建了 nginx pod 并验证其是否正在运行:
kubectl apply -f https://k8s.io/examples/pods/simple-pod.yaml kubectl 获取 pods
按照文档中的建议尝试检查点功能(上面已链接):
curl --insecure --cert ~/.minikube/profiles/criupoc/client.crt --key ~/.minikube/profiles/criupoc/client.key -X POST "https://
预期:已采取检查点
实际:default/nginx/nginx 的检查点失败(rpc 错误:代码 = 未实现的 desc = 服务运行时.v1.RuntimeService 的未知方法 CheckpointContainer)
注释:
问题: 您能否对此提供一些见解?我该如何修复此错误或更改我的程序来获取 nginx 容器的快照?