【发布时间】:2020-12-03 22:26:03
【问题描述】:
我正在为 Kubernetes 开发一个新的 CRI,我想了解有关 PullImage 方法中的 pod 配置的信息,但 PullImageRequest 始终包含具有 nil 值的沙箱配置。
如您所见,PullImageRequest 包含一个 PodSanboxConfig 对象:
type PullImageRequest struct {
// Spec of the image.
Image *ImageSpec `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
// Authentication configuration for pulling the image.
Auth *AuthConfig `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"`
// Config of the PodSandbox, which is used to pull image in PodSandbox context.
SandboxConfig *PodSandboxConfig `protobuf:"bytes,3,opt,name=sandbox_config,json=sandboxConfig" json:"sandbox_config,omitempty"`
}
我正在合作
Kubernetes 1.11.3
和
cri/runtime/v1alpha2
如何获取 PodSandboxConfig 对象?
谢谢
【问题讨论】:
-
所以你想让这个值为零?还是不为零?您希望通过 CRI 传递哪些信息?
-
我希望它不为零,这样我就可以通过沙盒配置获取信息。
标签: kubernetes interface containers runtime container-runtime-interface