Skip to content

Commit

Permalink
Add additional metadata configuration option to external Openstack CCM (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sryther committed Jul 1, 2020
1 parent 2a82dff commit 8144b2f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/openstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,11 @@ The new cloud provider is configured to have Octavia by default in Kubespray.
- ""
```

- You can override the default OpenStack metadata configuration (see [#6338](https://github.com/kubernetes-sigs/kubespray/issues/6338) for explanation):

```yaml
external_openstack_metadata_search_order: "configDrive,metadataService"
```

- Run `source path/to/your/openstack-rc` to read your OpenStack credentials like `OS_AUTH_URL`, `OS_USERNAME`, `OS_PASSWORD`, etc. Those variables are used for accessing OpenStack from the external cloud provider.
- Run the `cluster.yml` playbook
1 change: 1 addition & 0 deletions inventory/sample/group_vars/all/openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
# - ""
# external_openstack_network_public_networks:
# - ""
# external_openstack_metadata_search_order: "configDrive,metadataService"

## The tag of the external OpenStack Cloud Controller image
# external_openstack_cloud_controller_image_tag: "latest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ internal-network-name="{{ network_name }}"
{% for network_name in external_openstack_network_public_networks %}
public-network-name="{{ network_name }}"
{% endfor %}

[Metadata]
search-order="{{ external_openstack_metadata_search_order }}"
1 change: 1 addition & 0 deletions roles/kubespray-defaults/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ external_openstack_network_internal_networks:
- ""
external_openstack_network_public_networks:
- ""
external_openstack_metadata_search_order: "configDrive,metadataService"

## List of authorization modes that must be configured for
## the k8s cluster. Only 'AlwaysAllow', 'AlwaysDeny', 'Node' and
Expand Down

0 comments on commit 8144b2f

Please sign in to comment.