9f0db30fd1
This commit is the final commit to apply resource-constraints to all OpenStack services. Depends-on: I39004f54281f97d53dfa4b1dbcf248650ad6f186 Change-Id: I072d69be9698be54775cb0ae286ea2b6ed78776c Implements: blueprint resource-constraints
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
---
|
|
project_name: "redis"
|
|
|
|
redis_services:
|
|
redis:
|
|
container_name: redis
|
|
group: redis
|
|
enabled: true
|
|
image: "{{ redis_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/redis/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ project_name }}:/var/lib/redis/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
dimensions: "{{ redis_dimensions }}"
|
|
redis-sentinel:
|
|
container_name: redis_sentinel
|
|
group: redis
|
|
enabled: true
|
|
image: "{{ redis_sentinel_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/redis-sentinel/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
dimensions: "{{ redis_sentinel_dimensions }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
redis_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-redis"
|
|
redis_tag: "{{ openstack_release }}"
|
|
redis_image_full: "{{ redis_image }}:{{ redis_tag }}"
|
|
|
|
redis_sentinel_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-redis-sentinel"
|
|
redis_sentinel_tag: "{{ openstack_release }}"
|
|
redis_sentinel_image_full: "{{ redis_sentinel_image }}:{{ redis_tag }}"
|
|
redis_dimensions: "{{ default_container_dimensions }}"
|
|
redis_sentinel_dimensions: "{{ default_container_dimensions }}"
|