Convert all etcd-specific configs to nested

Change-Id: I3f2a908ebdb185bb92660683dd5606bf06e15a8e
This commit is contained in:
Yuriy Taraday 2016-10-05 17:25:06 +03:00
parent 29e2a0a40f
commit c5168f6f02
2 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,8 @@
service:
name: etcd
ports:
- {{ etcd_client_port }}
- {{ etcd_server_port }}
- {{ etcd.client_port }}
- {{ etcd.server_port }}
containers:
- name: etcd
image: etcd
@ -10,5 +10,5 @@ service:
readiness: "true"
liveness: "true"
daemon:
command: etcd --listen-client-urls http://0.0.0.0:{{ etcd_client_port }}
--advertise-client-urls http://{{ address("etcd") }}:{{ etcd_client_port }}
command: etcd --listen-client-urls http://0.0.0.0:{{ etcd.client_port }}
--advertise-client-urls http://{{ address("etcd") }}:{{ etcd.client_port }}

View File

@ -1,8 +1,9 @@
configs:
etcd_connection_attempts: 20
etcd_connection_delay: 5
etcd_client_port: 2379
etcd_server_port: 2380
etcd:
connection_attempts: 20
connection_delay: 5
client_port: 2379
server_port: 2380
versions:
etcd_version: v3.0.9