mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor updates
This commit is contained in:
8
vendor/k8s.io/kubernetes/pkg/kubemark/hollow_kubelet.go
generated
vendored
8
vendor/k8s.io/kubernetes/pkg/kubemark/hollow_kubelet.go
generated
vendored
@ -105,11 +105,12 @@ func GetHollowKubeletConfig(
|
||||
podsPerCore int) (*options.KubeletFlags, *kubeletconfig.KubeletConfiguration) {
|
||||
|
||||
testRootDir := utils.MakeTempDirOrDie("hollow-kubelet.", "")
|
||||
manifestFilePath := utils.MakeTempDirOrDie("manifest", testRootDir)
|
||||
podFilePath := utils.MakeTempDirOrDie("static-pods", testRootDir)
|
||||
glog.Infof("Using %s as root dir for hollow-kubelet", testRootDir)
|
||||
|
||||
// Flags struct
|
||||
f := options.NewKubeletFlags()
|
||||
f.EnableServer = true
|
||||
f.RootDirectory = testRootDir
|
||||
f.HostnameOverride = nodeName
|
||||
f.MinimumGCAge = metav1.Duration{Duration: 1 * time.Minute}
|
||||
@ -124,11 +125,11 @@ func GetHollowKubeletConfig(
|
||||
panic(err)
|
||||
}
|
||||
|
||||
c.ManifestURL = ""
|
||||
c.StaticPodURL = ""
|
||||
c.Address = "0.0.0.0" /* bind address */
|
||||
c.Port = int32(kubeletPort)
|
||||
c.ReadOnlyPort = int32(kubeletReadOnlyPort)
|
||||
c.PodManifestPath = manifestFilePath
|
||||
c.StaticPodPath = podFilePath
|
||||
c.FileCheckFrequency.Duration = 20 * time.Second
|
||||
c.HTTPCheckFrequency.Duration = 20 * time.Second
|
||||
c.NodeStatusUpdateFrequency.Duration = 10 * time.Second
|
||||
@ -144,7 +145,6 @@ func GetHollowKubeletConfig(
|
||||
c.CPUCFSQuota = true
|
||||
c.EnableControllerAttachDetach = false
|
||||
c.EnableDebuggingHandlers = true
|
||||
c.EnableServer = true
|
||||
c.CgroupsPerQOS = false
|
||||
// hairpin-veth is used to allow hairpin packets. Note that this deviates from
|
||||
// what the "real" kubelet currently does, because there's no way to
|
||||
|
Reference in New Issue
Block a user