fuel-ccp-etcd/service/etcd.yaml

38 lines
858 B
YAML

dsl_version: 0.4.0
service:
name: etcd
ports:
- {{ etcd.client_port }}
- {{ etcd.server_port }}
annotations:
service:
prometheus.io/port: "{{ etcd.client_port.cont }}"
prometheus.io/scrape: "true"
containers:
- name: etcd
image: etcd
daemon:
command: /opt/ccp/bin/entrypoint.sh
files:
- entrypoint
# {% if etcd.tls.enabled %}
- server_certificate
- server_key
# {% endif %}
files:
entrypoint:
path: /opt/ccp/bin/entrypoint.sh
content: entrypoint.sh.j2
perm: "0755"
# {% if etcd.tls.enabled %}
server_certificate:
path: /opt/ccp/etc/tls/etcd_server_certificate.pem
content: server.pem.j2
perm: "0644"
server_key:
path: /opt/ccp/etc/tls/etcd_server_key.pem
content: server-key.pem.j2
perm: "0644"
# {% endif %}