1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hosted-clusters-openstack-addl-ports-creating.adoc
2025-06-13 14:17:09 +00:00

44 lines
1.6 KiB
Plaintext

// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-manage/hcp-manage-openstack.adoc
:_mod-docs-content-type: PROCEDURE
[id="hosted-clusters-openstack-addl-ports_{context}"]
= Creating additional ports for node pools
You can configure additional ports for node pools for hosted clusters that run on {rh-openstack-first}.
.Prerequisites
* You created a hosted cluster.
* You have access to the management cluster.
* The `hcp` CLI is installed.
* Additional networks are created in {rh-openstack}.
* The project that is used by the hosted cluster must have access to the additional networks.
* You reviewed the options that are listed in "Options for additional ports for node pools".
.Procedure
* Create a hosted cluster with additional ports attached to it by running the `hcp create nodepool openstack` command with the `--openstack-node-additional-port` options. For example:
+
[source,terminal]
----
$ hcp create nodepool openstack \
--cluster-name <cluster_name> \
--name <nodepool_name> \
--replicas <replica_count> \
--openstack-node-flavor <flavor> \
--openstack-node-additional-port "network-id=<sriov_net_id>,vnic-type=direct,disable-port-security=true" \
--openstack-node-additional-port "network-id=<lb_net_id>,address-pairs:192.168.0.1-192.168.0.2"
----
+
--
where:
`<cluster_name>`:: Specifies the name of the hosted cluster.
`<nodepool_name>`:: Specifies the name of the node pool.
`<replica_count>`:: Specifies the desired number of replicas.
`<flavor>`:: Specifies the {rh-openstack} flavor to use.
`<sriov_net_id>`:: Specifies a SR-IOV network ID.
`<lb_net_id>`:: Specifies a load balancer network ID.
--