Skip to content

Commit

Permalink
fix(alibaba): fix UI prompt msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rancher-sy-bot committed Sep 4, 2020
1 parent ad4992d commit 2ac9232
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/providers/alibaba/alibaba.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ func (p *Alibaba) CreateK3sCluster(ssh *types.SSH) (err error) {
defer func() {
s.Stop()
if err == nil && p.UI != "none" && len(p.Status.MasterNodes) > 0 {
fmt.Printf("K3s UI %s URL: https://%s:8999\n", p.UI, p.Status.MasterNodes[0].PublicIPAddress[0])
if strings.EqualFold(p.CloudControllerManager, "true") {
fmt.Printf("K3s UI %s URL: https://<using `kubectl get svc -A` get UI address>:8999\n", p.UI)
} else {
fmt.Printf("K3s UI %s URL: https://%s:8999\n", p.UI, p.Status.MasterNodes[0].PublicIPAddress[0])
}
fmt.Printf("Use `autok3s kubectl get pods -A` get UI status\n")
}
}()
Expand Down

0 comments on commit 2ac9232

Please # to comment.