fix: kubernetes服务注册地址更改为域名
Signed-off-by: devad <cossjie@foxmail.com>
This commit is contained in:
parent
6519bfb799
commit
364a5232c1
|
@ -1,2 +1,3 @@
|
|||
# jcc-schedule
|
||||
|
||||
> nacos 配置域名为**nacos.jcce.dev**; 服务器hosts配置**nacos.jcce.dev**指向nacos地址即可。
|
|
@ -61,7 +61,7 @@ func GetClient() config_client.IConfigClient {
|
|||
//开发环境需要指定nacos地址
|
||||
serverConfig := []constant.ServerConfig{
|
||||
{
|
||||
IpAddr: "http://nacos-headless",
|
||||
IpAddr: "http://nacos.jcce.dev",
|
||||
Port: 8848,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue