1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-12 13:18:47 +00:00

Update workers only option

Disable port check
This commit is contained in:
galal-hussein
2018-03-20 14:56:49 +02:00
parent 7b2e209412
commit 6e7e18ad1e
8 changed files with 45 additions and 26 deletions

View File

@@ -371,7 +371,7 @@ func (c *Cluster) runServicePortChecks(ctx context.Context) error {
}
}
// check all -> etcd connectivity
log.Infof(ctx, "[network] Running all -> etcd port checks")
log.Infof(ctx, "[network] Running control plane -> etcd port checks")
for _, host := range c.ControlPlaneHosts {
runHost := host
errgrp.Go(func() error {
@@ -381,18 +381,8 @@ func (c *Cluster) runServicePortChecks(ctx context.Context) error {
if err := errgrp.Wait(); err != nil {
return err
}
// Workers need to talk to etcd for calico
for _, host := range c.WorkerHosts {
runHost := host
errgrp.Go(func() error {
return checkPlaneTCPPortsFromHost(ctx, runHost, EtcdPortList, c.EtcdHosts, c.SystemImages.Alpine, c.PrivateRegistriesMap)
})
}
if err := errgrp.Wait(); err != nil {
return err
}
// check controle plane -> Workers
log.Infof(ctx, "[network] Running control plane -> etcd port checks")
log.Infof(ctx, "[network] Running control plane -> worker port checks")
for _, host := range c.ControlPlaneHosts {
runHost := host
errgrp.Go(func() error {