-
Notifications
You must be signed in to change notification settings - Fork 50
Move 'VF/MAC/VLAN' from NetConf to NetArgs by following the CNI spec #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi Yin, Is it something like below? {
"name": "sriov-net",
"type": "sriov",
"master": "eth1",
"args": {
"vf": 1,
"mac": "66:d8:02:77:aa:aa"
},
"ipam": {
"type": "host-local",
// ipam specific
"subnet": "10.1.0.0/16",
"gateway": "10.1.0.1"
},
"dns": {
"nameservers": [ "10.1.0.1" ]
}
} |
| "mac": "66:d8:02:77:aa:aa", | ||
| "ipam": { | ||
| "type": "host-local", | ||
| "type": "fixipam", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to use fixipam?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, any IPAM plugin is OK:)
| @@ -45,10 +48,8 @@ Given the following network configuration: | |||
| "name": "mynet", | |||
| "type": "sriov", | |||
| "master": "eth1", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a example of Args here. So that user can understand it ?
rkamudhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will test it and let you know asap.
|
@rkamudhan By CNI spec: However, this PR don't include using |
|
@rkamudhan I am waiting your testing reply :) |
|
@hustcat |
|
@rkamudhan The features you added are so amazing, I'd like to merged it if you like. CNI spec allow plugin added its own optional fields for network configuration, so add But I still wonder how these optional fields can be integrated with Kubernetes. see 1, 2.
In addition, I'd like to merge this PR if you don't have other opinions. |
|
@hustcat , I think CNI Args will be a part of pod spec in kubernetes, which are optional. The .conflist file work similar to the Multus plugin |
|
@rkamudhan Thanks, I‘ll merged this PR now. After this, let's merge your DPDK and other features:) |
Move 'VF/MAC/VLAN' from NetConf to NetArgs by following the CNI spec.