解决K8S部署consul,重启pod后KV数据无法持久化的问题.
parent
0d881b7d6b
commit
3da0076ff0
|
@ -77,6 +77,8 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: consul
|
- name: consul
|
||||||
image: 'swr.cn-south-1.myhuaweicloud.com/starsl.cn/consul:latest'
|
image: 'swr.cn-south-1.myhuaweicloud.com/starsl.cn/consul:latest'
|
||||||
|
args:
|
||||||
|
- agent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8500
|
containerPort: 8500
|
||||||
|
|
Loading…
Reference in New Issue