Merge "Put etcd behind HTTP loadbalancer"
This commit is contained in:
commit
0a128d24b9
@ -23,7 +23,13 @@ etcd_services:
|
||||
image: "{{ etcd_image_full }}"
|
||||
volumes: "{{ etcd_default_volumes + etcd_extra_volumes }}"
|
||||
dimensions: "{{ etcd_dimensions }}"
|
||||
|
||||
haproxy:
|
||||
etcd:
|
||||
enabled: true
|
||||
mode: "http"
|
||||
external: false
|
||||
port: "{{ etcd_client_port }}"
|
||||
tls_backend: "{{ etcd_enable_tls | bool }}"
|
||||
|
||||
####################
|
||||
# Docker
|
||||
|
7
ansible/roles/etcd/tasks/loadbalancer.yml
Normal file
7
ansible/roles/etcd/tasks/loadbalancer.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: "Configure loadbalancer for {{ project_name }}"
|
||||
import_role:
|
||||
name: loadbalancer-config
|
||||
vars:
|
||||
project_services: "{{ etcd_services }}"
|
||||
tags: always
|
@ -150,6 +150,11 @@
|
||||
tasks_from: loadbalancer
|
||||
tags: designate
|
||||
when: enable_designate | bool
|
||||
- include_role:
|
||||
name: etcd
|
||||
tasks_from: loadbalancer
|
||||
tags: etcd
|
||||
when: enable_etcd | bool
|
||||
- include_role:
|
||||
name: freezer
|
||||
tasks_from: loadbalancer
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
etcd is now exposed internally via HAProxy on ``etcd_client_port``.
|
Loading…
Reference in New Issue
Block a user