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"
]
}
}
}
|