From d6e4f9259738c42d2df15d78475a3318a36b9f01 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 02 六月 2023 17:02:54 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/aps_deploy --- src/k8s/create.go | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/k8s/create.go b/src/k8s/create.go index 53e4ef0..12b995c 100644 --- a/src/k8s/create.go +++ b/src/k8s/create.go @@ -7,8 +7,9 @@ "log" "math/rand" "path/filepath" + "strconv" - "../util" + "basic.com/aps/aps_deploy.git/src/util" appsv1 "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" @@ -25,7 +26,7 @@ usedNodePorts = make(map[int32]bool) ) -func main() { +func create_test() { // 閰嶇疆 Kubernetes 闆嗙兢鐨� kubeconfig 璺緞 kubeconfig := flag.String("kubeconfig", filepath.Join(util.HomeDir(), ".kube", "config"), "kubeconfig file") flag.Parse() @@ -207,6 +208,26 @@ Name: "NODE_ID", Value: namespace, }, + { + Name: "DB_HOST", + Value: namespace, + }, + { + Name: "DB_NAME", + Value: namespace, + }, + { + Name: "DB_PORT", + Value: strconv.Itoa(3306), + }, + { + Name: "DB_USER", + Value: namespace, + }, + { + Name: "DB_PASSWD", + Value: namespace + "@Basic2023", + }, }, }, }, -- Gitblit v1.8.0