【问题标题】:How to get PodSandboxConfig object in PullImageRequest on container runtime interface interface如何在容器运行时接口接口的 PullImageRequest 中获取 PodSandboxConfig 对象
【发布时间】: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


【解决方案1】:

我在 Kubernetes github 上创建了一个关于它的 issue,他们正在这个 pull request 中处理它。

【讨论】:

    猜你喜欢
    • 2020-08-08
    • 2010-11-17
    • 1970-01-01
    • 2019-05-17
    • 1970-01-01
    • 2021-07-10
    • 1970-01-01
    • 2017-08-19
    • 2017-01-06
    相关资源
    最近更新 更多