diff --git a/pkg/agent/config/config.go b/pkg/agent/config/config.go index c37c25e49d..df4e102dc4 100644 --- a/pkg/agent/config/config.go +++ b/pkg/agent/config/config.go @@ -503,6 +503,7 @@ func get(ctx context.Context, envInfo *cmds.Agent, proxy proxy.Proxy) (*config.N ContainerRuntimeEndpoint: envInfo.ContainerRuntimeEndpoint, ImageServiceEndpoint: envInfo.ImageServiceEndpoint, MultiClusterCIDR: controlConfig.MultiClusterCIDR, + EmbeddedRegistry: controlConfig.EmbeddedRegistry, FlannelBackend: controlConfig.FlannelBackend, FlannelIPv6Masq: controlConfig.FlannelIPv6Masq, FlannelExternalIP: controlConfig.FlannelExternalIP, diff --git a/pkg/cli/cmds/server.go b/pkg/cli/cmds/server.go index 3f56055961..0ec00a33f5 100644 --- a/pkg/cli/cmds/server.go +++ b/pkg/cli/cmds/server.go @@ -77,6 +77,7 @@ type Server struct { DisableAPIServer bool DisableControllerManager bool DisableETCD bool + EmbeddedRegistry bool ClusterInit bool ClusterReset bool ClusterResetRestorePath string @@ -489,6 +490,11 @@ var ServerFlags = []cli.Flag{ Usage: "(experimental/components) Disable running etcd", Destination: &ServerConfig.DisableETCD, }, + &cli.BoolFlag{ + Name: "embedded-registry", + Usage: "(experimental/components) Enable embedded distributed container registry; requires use of embedded containerd", + Destination: &ServerConfig.EmbeddedRegistry, + }, NodeNameFlag, WithNodeIDFlag, NodeLabels, diff --git a/pkg/cli/server/server.go b/pkg/cli/server/server.go index 03abef63c2..6239fad24a 100644 --- a/pkg/cli/server/server.go +++ b/pkg/cli/server/server.go @@ -166,6 +166,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont serverConfig.ControlConfig.DisableAPIServer = cfg.DisableAPIServer serverConfig.ControlConfig.DisableScheduler = cfg.DisableScheduler serverConfig.ControlConfig.DisableControllerManager = cfg.DisableControllerManager + serverConfig.ControlConfig.EmbeddedRegistry = cfg.EmbeddedRegistry serverConfig.ControlConfig.ClusterInit = cfg.ClusterInit serverConfig.ControlConfig.EncryptSecrets = cfg.EncryptSecrets serverConfig.ControlConfig.EtcdExposeMetrics = cfg.EtcdExposeMetrics diff --git a/pkg/daemons/config/types.go b/pkg/daemons/config/types.go index 1733db374f..1b8ee3096f 100644 --- a/pkg/daemons/config/types.go +++ b/pkg/daemons/config/types.go @@ -42,6 +42,7 @@ type Node struct { NoFlannel bool SELinux bool MultiClusterCIDR bool + EmbeddedRegistry bool FlannelBackend string FlannelConfFile string FlannelConfOverride bool @@ -183,6 +184,7 @@ type Control struct { DisableKubeProxy bool DisableScheduler bool DisableServiceLB bool + EmbeddedRegistry bool Rootless bool ServiceLBNamespace string EnablePProf bool