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:
Aditi Sharma
2022-03-16 18:01:26 +05:30
committed by Paco Xu
parent 0e19bbb916
commit 214a0ee7b8
14 changed files with 64 additions and 24 deletions

View File

@@ -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 */