Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Openstack LBaaSv2 #1

Merged
merged 1 commit into from Jun 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -23,7 +23,9 @@ The following optional environment variables can also be set:
* `NAME`: name of the Kubernetes cluster, used to derive instance names, `kubectl` configuration and security group name
* `IMAGE``: name of an existing Ubuntu 16.04 image
* `NETWORK`: name of the network to which instances should be connected
* `SUBNET_UUID`: UUID of the subnet to which instances should be connected (required for LBaaSv2)
* `FLOATING_IP_POOL`: name of the floating IP pool
* `FLOATING_IP_NETWORK_UUID`: uuid of the floating IP network (required for LBaaSv2)
* `NODE_MEMORY`: how many MB of memory should nodes have, defaults to 4GB
* `NODE_COUNT`: how many nodes should we provision, defaults to 3
* `MASTER_BOOT_FROM_VOLUME`: boot the master instance on a volume for data persistence, defaults to True
Expand Down
8 changes: 8 additions & 0 deletions files/cloud-config.j2
Expand Up @@ -3,6 +3,7 @@ auth-url = {{ lookup('env', 'OS_AUTH_URL') }}
username = {{ lookup('env', 'OS_USERNAME') }}
password = {{ lookup('env', 'OS_PASSWORD') }}
tenant-name = {{ lookup('env', 'OS_PROJECT_NAME') }}
tenant-id = {{ lookup('env', 'OS_PROJECT_ID') }}
{% if lookup('env', 'OS_REGION_NAME') != '' %}
region = {{ lookup('env', 'OS_REGION_NAME') }}
{% endif %}
Expand All @@ -12,3 +13,10 @@ domain-name = {{ lookup('env', 'OS_DOMAIN_NAME') }}

[BlockStorage]
trust-device-path = false

{% if lookup('env', 'FLOATING_IP_NETWORK_UUID') != '' %}
[LoadBalancer]
lb-version = v2
floating-network-id = {{ lookup('env', 'FLOATING_IP_NETWORK_UUID') }}
subnet-id = {{ lookup('env', 'SUBNET_UUID') }}
{% endif %}