diff --git a/README.md b/README.md index 881c5a2..cc35ab3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # pcm-kubernetes-new +> nacos 配置域名为**nacos.jcce.dev**; 服务器hosts配置**nacos.jcce.dev**指向nacos地址即可。 \ No newline at end of file diff --git a/app/nacos.go b/app/nacos.go index 769663a..e763996 100644 --- a/app/nacos.go +++ b/app/nacos.go @@ -61,7 +61,7 @@ func GetClient() config_client.IConfigClient { //开发环境需要指定nacos地址 serverConfig := []constant.ServerConfig{ { - IpAddr: "http://nacos-headless", + IpAddr: "http://nacos.jcce.dev", Port: 8848, }, } diff --git a/deploy/jcce-schedule-deployment.yaml b/deploy/jcce-schedule-deployment.yaml index c30892f..6ef3152 100644 --- a/deploy/jcce-schedule-deployment.yaml +++ b/deploy/jcce-schedule-deployment.yaml @@ -16,6 +16,10 @@ spec: labels: k8s-app: jcce-schedule spec: + hostAliases: + - hostnames: + - nacos.jcce.dev + ip: 10.101.15.7 imagePullSecrets: - name: SECRET_NAME containers: