/
Network Configuration Controller
Network Configuration Controller
Cluster Network Intents
Networks Intent
With network API dynamic networks can be created.
POST
POST
URL: /v2/cluster-providers/{cluster-provider-name}/clusters/{cluster-name}/networks
POST BODY:
{
"metadata": {
"name": "<name>",
"description": "<description>",
"userData1": "<user data>",
"userData2": "<user data>"
},
"spec": {
"cniType": "ovn4nfv",
"ipv4Subnets": [
{
"subnet": "172.16.33.0/24",
"name": "subnet1",
"gateway": "172.16.33.1/24",
"excludeIps": "172.16.33.2 172.16.33.5..172.16.33.10"
}
]
}
}
Provider Networks Intent
With provider network API dynamic provider networks can be created.
POST
POST
URL: /v2/cluster-providers/{cluster-provider-name}/clusters/{cluster-name}/provider-networks
POST BODY:
{
"metadata": {
"name": "<name>",
"description": "<description>",
"userData1": "<user data>",
"userData2": "<user data>"
},
"spec": {
"cniType": "ovn4nfv",
"ipv4Subnets": [
{
"subnet": "172.16.33.0/24",
"name": "subnet1",
"gateway": "172.16.33.1/24",
"excludeIps": "172.16.33.2 172.16.33.5..172.16.33.10"
}
],
"providerNetType": "VLAN",
"vlan": {
"vlanId": "100",
"providerInterfaceName": "eth1",
"logicalInterfaceName": "eth1.100",
"vlanNodeSelector": "specific",
"nodeLabelList": [
"kubernetes.io/hostname=localhost"
]
}
}
}
Apply
Create networks and Provider networks in the cluster
POST
URL: /v2/cluster-providers/{cluster-provider-name}/clusters/{cluster-name}/apply
POST BODY:
{
}
Terminate
Delete networks and Provider networks in the cluster
POST
Deployment Network Control Intents
POST
POST
Workload Network Intents
POST
POST
Add network interface intent for a workload
POST
POST
Network Chain Intent
With network chaining, network chains can be created.