From 93f67ac47846fb06fce919e030f3846adc19ea38 Mon Sep 17 00:00:00 2001 From: Piotr Parczewski Date: Thu, 25 Feb 2021 23:33:50 +0100 Subject: [PATCH] Add support for custom shm_size for seed container(s) It's now possible to change Docker's default 64M SHM size for custom containers running on the seed. Change-Id: Ic6c2ec38e8a22b8acc90e17a552e471aa8313f7d --- ansible/roles/deploy-containers/tasks/deploy.yml | 1 + .../configuration/reference/seed-custom-containers.rst | 1 + ...add-seed-container-shm-size-support-ffc5976fb87fe285.yaml | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-seed-container-shm-size-support-ffc5976fb87fe285.yaml diff --git a/ansible/roles/deploy-containers/tasks/deploy.yml b/ansible/roles/deploy-containers/tasks/deploy.yml index 64635e7cb..d146f21a1 100644 --- a/ansible/roles/deploy-containers/tasks/deploy.yml +++ b/ansible/roles/deploy-containers/tasks/deploy.yml @@ -25,6 +25,7 @@ ports: "{{ container_config.ports | default(omit) }}" privileged: "{{ container_config.privileged | default(omit) }}" restart_policy: "{{ container_config.restart_policy | default(deploy_containers_defaults.restart_policy) }}" + shm_size: "{{ container_config.shm_size | default(omit) }}" sysctls: "{{ container_config.sysctls | default(omit) }}" timeout: "{{ deploy_containers_docker_api_timeout }}" ulimits: "{{ container_config.ulimits | default(omit) }}" diff --git a/doc/source/configuration/reference/seed-custom-containers.rst b/doc/source/configuration/reference/seed-custom-containers.rst index 6d9e05d5f..7b3f9b4f3 100644 --- a/doc/source/configuration/reference/seed-custom-containers.rst +++ b/doc/source/configuration/reference/seed-custom-containers.rst @@ -44,6 +44,7 @@ Possible options for container deployment: ports: privileged: restart_policy: + shm_size: sysctls: tag: ulimits: diff --git a/releasenotes/notes/add-seed-container-shm-size-support-ffc5976fb87fe285.yaml b/releasenotes/notes/add-seed-container-shm-size-support-ffc5976fb87fe285.yaml new file mode 100644 index 000000000..3d8e6d175 --- /dev/null +++ b/releasenotes/notes/add-seed-container-shm-size-support-ffc5976fb87fe285.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Adds support for changing ``shm_size`` parameter when deploying + custom seed container(s).