|
| 1 | +//Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_openstack/installing-openstack-installer.adoc |
| 4 | +// * installing/installing_openstack/installing-openstack-installer-custom.adoc |
| 5 | +// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc |
| 6 | +// * installing/installing_openstack/installing-openstack-installer-user.adoc |
| 7 | + |
| 8 | +[id="installation-osp-setting-cloud-provider-options_{context}"] |
| 9 | += Setting cloud provider options |
| 10 | + |
| 11 | +Optionally, you can edit the cloud provider configuration for your cluster. The cloud provider configuration controls how {product-title} interacts with {rh-openstack-first}. |
| 12 | + |
| 13 | +For a complete list of cloud provider configuration parameters, see link:https://v1-18.docs.kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#cloud-conf[the `cloud.conf` specification]. |
| 14 | + |
| 15 | +.Procedure |
| 16 | + |
| 17 | +. If you have not already generated manifest files for your cluster, generate them by running the following command: |
| 18 | ++ |
| 19 | +[source,terminal] |
| 20 | +---- |
| 21 | +$ openshift-install --dir <destination_directory> create manifests |
| 22 | +---- |
| 23 | + |
| 24 | +. In a text editor, open the cloud-provider configuration manifest file. For example: |
| 25 | ++ |
| 26 | +[source,terminal] |
| 27 | +---- |
| 28 | +$ vi openshift/manifests/cloud-provider-config.yaml |
| 29 | +---- |
| 30 | + |
| 31 | +. Modify the options based on link:https://v1-18.docs.kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#cloud-conf[the `cloud.conf` specification]. |
| 32 | ++ |
| 33 | +Configuring Octavia for load balancing is a common case. For example: |
| 34 | ++ |
| 35 | +[source,yaml] |
| 36 | +---- |
| 37 | +#... |
| 38 | +[LoadBalancer] |
| 39 | +use-octavia=true <1> |
| 40 | +lb-provider = "amphora" <2> |
| 41 | +floating-network-id="d3deb660-4190-40a3-91f1-37326fe6ec4a"<3> |
| 42 | +#... |
| 43 | +---- |
| 44 | +<1> This property enables Octavia integration. |
| 45 | +<2> This property sets the Octavia provider that your load balancer uses. It accepts `"ovn"` or `"amphora"` as values. If you choose to use OVN, you must also set `lb-method` to `SOURCE_IP_PORT`. |
| 46 | +<3> This property is required if you want to use multiple external networks with your cluster. The cloud provider creates floating IP addresses on the network that is specified here. |
| 47 | ++ |
| 48 | +[IMPORTANT] |
| 49 | +==== |
| 50 | +Prior to saving your changes, verify that the file is structured correctly. Clusters might fail if properties are not placed in the appropriate section. |
| 51 | +==== |
| 52 | + |
| 53 | +. Save the changes to the file and proceed with installation. |
| 54 | ++ |
| 55 | +[TIP] |
| 56 | +==== |
| 57 | +You can update your cloud provider configuration after you run the installer. On a command line, run: |
| 58 | +
|
| 59 | +[source,terminal] |
| 60 | +---- |
| 61 | +$ oc edit configmap -n openshift-config cloud-provider-config |
| 62 | +---- |
| 63 | +
|
| 64 | +After you save your changes, your cluster will take some time to reconfigure itself. The process is complete if none of your nodes have a `SchedulingDisabled` status. |
| 65 | +==== |
0 commit comments