mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 01:23:48 +00:00
Migrate container runtime endpoint flag to config
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com> Signed-off-by: Paco Xu <paco.xu@daocloud.io>
This commit is contained in:
@@ -158,7 +158,6 @@ func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, *
|
||||
f.MaxPerPodContainerCount = 2
|
||||
f.NodeLabels = opt.NodeLabels
|
||||
f.RegisterSchedulable = true
|
||||
f.RemoteImageEndpoint = "unix:///run/containerd/containerd.sock"
|
||||
|
||||
// Config struct
|
||||
c, err := options.NewKubeletConfiguration()
|
||||
@@ -166,6 +165,7 @@ func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, *
|
||||
panic(err)
|
||||
}
|
||||
|
||||
c.ImageServiceEndpoint = "unix:///run/containerd/containerd.sock"
|
||||
c.StaticPodURL = ""
|
||||
c.EnableServer = true
|
||||
c.Address = "0.0.0.0" /* bind address */
|
||||
|
Reference in New Issue
Block a user