diff --git a/cluster/cluster.go b/cluster/cluster.go index 18a946c3..bcc0f93d 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -100,10 +100,10 @@ func (c *Cluster) DeployWorkerPlane(ctx context.Context) error { // Deploy Worker plane workerNodePlanMap := make(map[string]v3.RKEConfigNodePlan) // Build cp node plan map - for _, workerHost := range c.ControlPlaneHosts { + allHosts := hosts.GetUniqueHostList(c.EtcdHosts, c.ControlPlaneHosts, c.WorkerHosts) + for _, workerHost := range allHosts { workerNodePlanMap[workerHost.Address] = BuildRKEConfigNodePlan(ctx, c, workerHost, workerHost.DockerInfo) } - allHosts := hosts.GetUniqueHostList(c.EtcdHosts, c.ControlPlaneHosts, c.WorkerHosts) if err := services.RunWorkerPlane(ctx, allHosts, c.LocalConnDialerFactory, c.PrivateRegistriesMap, diff --git a/cluster/plan.go b/cluster/plan.go index 99bb8567..4e180486 100644 --- a/cluster/plan.go +++ b/cluster/plan.go @@ -48,7 +48,7 @@ func BuildRKEConfigNodePlan(ctx context.Context, myCluster *Cluster, host *hosts portChecks = append(portChecks, BuildPortChecksFromPortList(host, WorkerPortList, ProtocolTCP)...) // Do we need an nginxProxy for this one ? - if host.IsWorker && !host.IsControl { + if !host.IsControl { processes[services.NginxProxyContainerName] = myCluster.BuildProxyProcess() } if host.IsControl {