mirror of
https://github.com/rancher/rke.git
synced 2025-09-08 18:39:40 +00:00
renamed ControlPlaneIP
This commit is contained in:
@@ -123,10 +123,10 @@ func parseClusterFile(clusterFile string) (*services.Container, []hosts.Host, er
|
||||
} else if len(host.Role) == 0 {
|
||||
return nil, nil, fmt.Errorf("Role for host (%d) is not provided", i+1)
|
||||
|
||||
} else if host.ControlPlaneIP == "" {
|
||||
} else if host.AdvertiseAddress == "" {
|
||||
// if control_plane_ip is not set,
|
||||
// default to the main IP
|
||||
host.ControlPlaneIP = host.IP
|
||||
k8shosts.Hosts[i].AdvertiseAddress = host.IP
|
||||
}
|
||||
for _, role := range host.Role {
|
||||
if role != services.ETCDRole && role != services.ControlRole && role != services.WorkerRole {
|
||||
|
Reference in New Issue
Block a user