fix: kubernetes服务注册地址更改为域名

Signed-off-by: devad <cossjie@foxmail.com>
This commit is contained in:
devad 2023-06-01 17:26:13 +08:00 committed by zhangwei
parent 426cab036f
commit 8a224e431f
3 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,3 @@
# pcm-kubernetes-new
> nacos 配置域名为**nacos.jcce.dev**; 服务器hosts配置**nacos.jcce.dev**指向nacos地址即可。

View File

@ -61,7 +61,7 @@ func GetClient() config_client.IConfigClient {
//开发环境需要指定nacos地址
serverConfig := []constant.ServerConfig{
{
IpAddr: "http://nacos-headless",
IpAddr: "http://nacos.jcce.dev",
Port: 8848,
},
}

View File

@ -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: