[ Agent ] [ APP ] - fix rke bugs
This commit is contained in:
@@ -120,6 +120,17 @@ func (op *AgentOsOperator) deployRke(funcArgs []string) (bool, []string) {
|
||||
return false, resultLog
|
||||
}
|
||||
|
||||
// replace ip addr
|
||||
parseIP := net.ParseIP(funcArgs[1])
|
||||
if parseIP == nil {
|
||||
return false, []string{
|
||||
"[deployRke] - ip args error !",
|
||||
}
|
||||
}
|
||||
if !BasicReplace("/root/wdd/rke-cluster.yml", "A1C2IP", funcArgs[1]) {
|
||||
log.ErrorF("[deployRke] - rke config replace error !")
|
||||
}
|
||||
|
||||
return true, []string{
|
||||
"[deployRke] - rke dependency download success !",
|
||||
}
|
||||
@@ -148,7 +159,7 @@ func (op *AgentOsOperator) deployK8sDashboard(funcArgs []string) (bool, []string
|
||||
// kubectl
|
||||
|
||||
// replace
|
||||
parseIP := net.ParseIP(funcArgs[0])
|
||||
parseIP := net.ParseIP(funcArgs[1])
|
||||
if parseIP == nil {
|
||||
return false, []string{
|
||||
"[deployK8sDashboard] - ip args error !",
|
||||
@@ -175,7 +186,6 @@ func (op *AgentOsOperator) deployK8sDashboard(funcArgs []string) (bool, []string
|
||||
func (op *AgentOsOperator) deployMinio(funcArgs []string) (bool, []string) {
|
||||
minioTemplateFileName := "minio-docker-compose.yaml"
|
||||
result := append(AppExecuteErrorLogPrefix, "部署MINIO")
|
||||
|
||||
// 逻辑为接收执行,但是会报错
|
||||
|
||||
// 环境判定
|
||||
|
||||
Reference in New Issue
Block a user