summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-16 11:43:48 -0500
committerGitHub <noreply@github.com>2017-11-16 11:43:48 -0500
commit3b00ad54ad65069114eaee45e6ba025bf7aea482 (patch)
treebe7a048dd0ffb7f8a619c5ba984c33ecc34841d2 /roles
parent7a18158c1df667d2bc45fae3ca62ed35400bedb8 (diff)
parentd6fa97f7c333b90034d57e780bee3fdbc57acef7 (diff)
downloadopenshift-3b00ad54ad65069114eaee45e6ba025bf7aea482.tar.gz
openshift-3b00ad54ad65069114eaee45e6ba025bf7aea482.tar.bz2
openshift-3b00ad54ad65069114eaee45e6ba025bf7aea482.tar.xz
openshift-3b00ad54ad65069114eaee45e6ba025bf7aea482.zip
Merge pull request #6021 from luis5tb/master
Initial Kuryr Ports Pool Support
Diffstat (limited to 'roles')
-rw-r--r--roles/kuryr/README.md5
-rw-r--r--roles/kuryr/templates/configmap.yaml.j28
2 files changed, 13 insertions, 0 deletions
diff --git a/roles/kuryr/README.md b/roles/kuryr/README.md
index 7b618f902..269788a11 100644
--- a/roles/kuryr/README.md
+++ b/roles/kuryr/README.md
@@ -31,6 +31,11 @@ pods. This allows to have interconnectivity between pods and OpenStack VMs.
* ``kuryr_openstack_pod_service_id=service_subnet_uuid``
* ``kuryr_openstack_pod_project_id=pod_project_uuid``
* ``kuryr_openstack_worker_nodes_subnet_id=worker_nodes_subnet_uuid``
+* ``kuryr_openstack_enable_pools=True``
+* ``kuryr_openstack_pool_max=0``
+* ``kuryr_openstack_pool_min=1``
+* ``kuryr_openstack_pool_batch=5``
+* ``kuryr_openstack_pool_update_frequency=20``
## Kuryr resources
diff --git a/roles/kuryr/templates/configmap.yaml.j2 b/roles/kuryr/templates/configmap.yaml.j2
index e874d6c25..6bf6c1db2 100644
--- a/roles/kuryr/templates/configmap.yaml.j2
+++ b/roles/kuryr/templates/configmap.yaml.j2
@@ -161,6 +161,14 @@ data:
# The driver that provides VIFs for Kubernetes Pods. (string value)
pod_vif_driver = nested-vlan
+ # The driver that manages VIFs pools for Kubernetes Pods (string value)
+ vif_pool_driver = {{ kuryr_openstack_enable_pools | default(False) | ternary('nested', 'noop') }}
+
+ [vif_pool]
+ ports_pool_max = {{ kuryr_openstack_pool_max | default(0) }}
+ ports_pool_min = {{ kuryr_openstack_pool_min | default(1) }}
+ ports_pool_batch = {{ kuryr_openstack_pool_batch | default(5) }}
+ ports_pool_update_frequency = {{ kuryr_openstack_pool_update_frequency | default(20) }}
[neutron]
# Configuration options for OpenStack Neutron