Skip to content

Commit

Permalink
Merge pull request #2188 from chilianyi/master
Browse files Browse the repository at this point in the history
fix config and start containerd on no registry node
  • Loading branch information
ks-ci-bot authored Mar 28, 2024
2 parents 2657e8d + 0938e59 commit e6b6295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kk/pkg/bootstrap/registry/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func InstallHarbor(i *InstallRegistryModule) []task.Interface {
generateContainerdService := &task.RemoteTask{
Name: "GenerateContainerdService",
Desc: "Generate containerd service",
Hosts: i.Runtime.GetHostsByRole(common.K8s),
Hosts: i.Runtime.GetHostsByRole(common.Registry),
Prepare: &prepare.PrepareCollection{
&container.ContainerdExist{Not: true},
},
Expand Down Expand Up @@ -219,7 +219,7 @@ func InstallHarbor(i *InstallRegistryModule) []task.Interface {
enableContainerdForDocker := &task.RemoteTask{
Name: "EnableContainerd",
Desc: "Enable containerd",
Hosts: i.Runtime.GetHostsByRole(common.K8s),
Hosts: i.Runtime.GetHostsByRole(common.Registry),
Prepare: &prepare.PrepareCollection{
&container.ContainerdExist{Not: true},
},
Expand Down

0 comments on commit e6b6295

Please sign in to comment.