PodResources client could be used by sriov cni to obtain devices
allocated for container by sriov device-plugin.
KubeletPodResources service is still in alpha, so it should be
explicitly enabled in kubelet feature-gates:
kubelet --feature-gates KubeletPodResources=true
New config option 'kubelet_root_dir' added to 'sriov' section
that defaults to kubelet default root-dir '/var/lib/kulelet'.
In case kubelet started with non-default root directory passed
via '--root-dir' option, the same value should be configured
in 'kubelet_root_dir'.
Note that if sriov binding driver will be used inside container
'kubelet_root_dir'/pod-resources directory should be mounted
to this container in order to allow communication with kubelet
via gRPC protocol over the unix domain socket.
Reviewed: https:/ /review. opendev. org/651580 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=685f4c456a1 f5e0b0423b25d7d 914d4303276f8a
Committed: https:/
Submitter: Zuul
Branch: master
commit 685f4c456a1f5e0 b0423b25d7d914d 4303276f8a
Author: Ilya Maximets <email address hidden>
Date: Wed Mar 27 20:05:32 2019 +0300
Add PodResources service client
PodResources client could be used by sriov cni to obtain devices
allocated for container by sriov device-plugin.
KubeletPodR esources service is still in alpha, so it should be rces=true
explicitly enabled in kubelet feature-gates:
kubelet --feature-gates KubeletPodResou
New config option 'kubelet_root_dir' added to 'sriov' section root_dir' /pod-resources directory should be mounted
that defaults to kubelet default root-dir '/var/lib/kulelet'.
In case kubelet started with non-default root directory passed
via '--root-dir' option, the same value should be configured
in 'kubelet_root_dir'.
Note that if sriov binding driver will be used inside container
'kubelet_
to this container in order to allow communication with kubelet
via gRPC protocol over the unix domain socket.
Partial-Bug: 1826865 /review. openstack. org/#/c/ 652629 efe9c7647c31be4 ead867ed32b
Depends-On: https:/
Change-Id: Icf088b839db079
Signed-off-by: Ilya Maximets <email address hidden>