Merge "Put etcd behind HTTP loadbalancer"

This commit is contained in:
Zuul 2023-02-14 11:31:09 +00:00 committed by Gerrit Code Review
commit 0a128d24b9
4 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
---
- name: "Configure loadbalancer for {{ project_name }}"
import_role:
name: loadbalancer-config
vars:
project_services: "{{ etcd_services }}"
tags: always

View File

@ -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

View File

@ -0,0 +1,4 @@
---
features:
- |
etcd is now exposed internally via HAProxy on ``etcd_client_port``.