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.
-
Copy sample configuration for the network-attachment-definition configuration from the same documentation url (step #8)
or
use the provided sample configuration file
single-nic-vlan-netattach.sample
. -
Create a copy of sample config to configure network attachment definition for your deployment.
cp single-nic-vlan-netattach.sample osp-ng-netattach.yaml
-
Edit the file with your preferred editor.
vi osp-ng-netattach.yaml
-
Change the interface name and ip address as per your setup. Refer to network cofiguration table.
-
Copy the ctlplane block and paste it at the bottom and change it for external network configuration with the relevant interface and ip addresses.
-
Configure a nad resource for each isolated network to attach a service pod to the network:
oc apply -f osp-ng-netattach.yaml
-
Verify the
network-attachment-definitions
created with the above command:oc get network-attachment-definitions.k8s.cni.cncf.io -n openstack
Sample OutputNAME AGE ctlplane 5s external 5s internalapi 5s storage 5s tenant 5s