Add additional metadata configuration options to external Openstack CCM (kubernetes-sigs#6338) (#6339)
* Add additional metadata configuration option to external Openstack CCM (kubernetes-sigs#6338) * Set the variable external_openstack_metadata_search_order undefined by defaultpull/6358/head
parent
2a82dff3ae
commit
bcac3c62a2
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -57,3 +57,8 @@ internal-network-name="{{ network_name }}"
|
|||
{% for network_name in external_openstack_network_public_networks %}
|
||||
public-network-name="{{ network_name }}"
|
||||
{% endfor %}
|
||||
|
||||
[Metadata]
|
||||
{% if external_openstack_metadata_search_order is defined %}
|
||||
search-order="{{ external_openstack_metadata_search_order }}"
|
||||
{% endif %}
|
Loading…
Reference in New Issue