diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-09-05 18:46:05 +0200 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-09-06 12:26:09 +0200 |
commit | 6425e67d3832878b93b0da1520c150b81675cd3b (patch) | |
tree | 17cf4054bb9e2c024db1b8739108b7db598ef58a /tools/cicdansible/heat/node.yaml | |
parent | 07d99883b5e5895000fa400da3dfe12dad54c4e9 (diff) |
Make kubernetes nodes to be placed on different computes
Modify the heat template so that kubernetes node
instances are not placed on the same compute nodes, but each on a different node.
This is called anti-affinity.
Change-Id: I16cad7cc2f503130bae80be3820c477890214594
Issue-ID: OOM-2042
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'tools/cicdansible/heat/node.yaml')
-rw-r--r-- | tools/cicdansible/heat/node.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cicdansible/heat/node.yaml b/tools/cicdansible/heat/node.yaml index 7f6af35b..cd628eec 100644 --- a/tools/cicdansible/heat/node.yaml +++ b/tools/cicdansible/heat/node.yaml @@ -20,6 +20,8 @@ parameters: type: string security_group: type: string + scheduler_hints: + type: json resources: #Volume for storing /var/lib/docker for node. docker_storage: @@ -42,6 +44,7 @@ resources: flavor_name: { get_param: flavor_name } notify_command: { get_param: notify_command } security_group: { get_param: security_group } + scheduler_hints: { get_param: scheduler_hints } #Attachment of docker volume to node. docker_storage_attachment: type: OS::Cinder::VolumeAttachment |