Configuring Network Attachment Definition

Reference: Step #7 on the same link on the previous page for Section 3.4. Preparing RHOCP for RHOSP network isolation.

  1. Copy sample configuration for the network-attachment-defination configuration from the same documentation url (step #8)

    or

    use the provided sample configuration file single-nic-vlan-netattach.sample.

  2. Create a copy of sample config to configure network attachment defination for your deployment.

    cp single-nic-vlan-netattach.sample osp-ng-netattach.yaml
  3. Edit the file with your preferred editor.

    vi osp-ng-netattach.yaml
  4. Change the interface name and ipaddress as per your setup. Refer to network cofiguration table.

  5. Copy the ctlplane block and paste it at the bottom and change it for external network configuration with the relevant interface and ip addresses.

  6. Configure a nad resource for each isolated network to attach a service pod to the network:

    oc apply -f osp-ng-netattach.yaml
  7. Verify the network-attachment-definitions created with the above command:

    oc get network-attachment-definitions.k8s.cni.cncf.io -n openstack
    Sample Output
    NAME          AGE
    ctlplane      5s
    external      5s
    internalapi   5s
    storage       5s
    tenant        5s