Creating Mesh network segments by using the CLI

Before you configure your Red Hat® Service Interconnect® or Skupper gateways, you must create an IBM® Hybrid Cloud Mesh (Mesh) network segment to support the interconnections between the gateways.

About this task

For more information about network segments, see Using Red Hat Service Interconnect.

Procedure

Create the network segment by running the following Mesh CLI command:
cat << EOM | palmctl create networksegment -f -
name: <network-segment-name>
compatibility_set: <compatibility_set_value>
service_sync: <service-sync-value>
EOM
  • The network segment name must be unique.
  • For Mesh Essentials tenants, set compatibility_set to RHSI. For Mesh Free tenants, set compatibility_set to SKUPPER.
  • service_sync is optional and can be true or false, depending on how you want to configure connection policies for the network segment. The default is false, which means that policies can allow connections from specific namespaces to a service, or from all namespaces in the network segment to a service.

    If you set service_sync to true, connection policies allow connections from all namespaces in the network segment to a service. You cannot create policies that allow connections from specific namespaces.

    For more information about creating connection policies, see Connecting applications by using policies with the Mesh CLI.

What to do next

Deploy the Service Interconnect edge gateways and configure the connection between the gateways. See Deploying and connecting Service Interconnect edge gateways by using the CLI.