wangpengfei
2023-06-05 a4ec5f64bda915f8c7bfa7b1e19fa7f8a749cd08
src/k8s/create.go
@@ -22,7 +22,7 @@
var (
   replicas      int32 = 3
   port          int32 = 9081
   rpcPort       int32 = 9082
   rpcPort       int32 = 9091
   namespaces          = []string{"guangsheng", "geruimi", "tongsheng"}
   usedNodePorts       = make(map[int32]bool)
)
@@ -207,12 +207,8 @@
                     Image: "192.168.20.119/apsserver/apsserver:v0.5",
                     Env: []apiv1.EnvVar{
                        {
                           Name:  "NODE_ID",
                           Value: namespace,
                        },
                        {
                           Name:  "DB_HOST",
                           Value: namespace,
                           Value: "localhost",
                        },
                        {
                           Name:  "DB_NAME",
@@ -231,6 +227,7 @@
                           Value: namespace + "@Basic2023",
                        },
                     },
                     ImagePullPolicy: apiv1.PullAlways, // 设置镜像拉取策略为 Always
                  },
               },
            },