Make kubelet.sock path changable

k3s-v1.14.6
Darren Shepherd 2019-01-09 09:33:46 -07:00 committed by Erik Wilson
parent 14b632c696
commit 7bdc05e3e4
1 changed files with 5 additions and 2 deletions

View File

@ -29,9 +29,12 @@ const (
// Note: Placeholder until we find a "standard path" // Note: Placeholder until we find a "standard path"
DevicePluginPath = "/var/lib/kubelet/device-plugins/" DevicePluginPath = "/var/lib/kubelet/device-plugins/"
// KubeletSocket is the path of the Kubelet registry socket // KubeletSocket is the path of the Kubelet registry socket
KubeletSocket = DevicePluginPath + "kubelet.sock" //KubeletSocket = DevicePluginPath + "kubelet.sock"
// Timeout duration in secs for PreStartContainer RPC // Timeout duration in secs for PreStartContainer RPC
KubeletPreStartContainerRPCTimeoutInSecs = 30 KubeletPreStartContainerRPCTimeoutInSecs = 30
) )
var SupportedVersions = [...]string{"v1beta1"} var (
KubeletSocket = DevicePluginPath + "kubelet.sock"
SupportedVersions = [...]string{"v1beta1"}
)