mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
network: Remove CNI docs
We need to update the network docs to reflect CNM and CNI are handled much the same way. Start off by removing the incorrect CNI docs first. Fixes #678 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
f70d6d2acb
commit
9a8b45fc53
@ -16,7 +16,6 @@ Table of Contents
|
||||
* [Container API](#container-api)
|
||||
* [Networking](#networking)
|
||||
* [CNM](#cnm)
|
||||
* [CNI](#cni)
|
||||
* [Storage](#storage)
|
||||
* [How to check if container uses devicemapper block device as its rootfs](#how-to-check-if-container-uses-devicemapper-block-device-as-its-rootfs)
|
||||
* [Devices](#devices)
|
||||
@ -218,23 +217,6 @@ There are three drawbacks about using CNM instead of CNI:
|
||||
* Implicit way to designate the network namespace: Instead of explicitely giving the netns to dockerd, we give it the PID of our runtime so that it can find the netns from this PID. This means we have to make sure being in the right netns while calling the hook, otherwise the veth pair will be created with the wrong netns.
|
||||
* No results are back from the hook: We have to scan the network interfaces to discover which one has been created inside the netns. This introduces more latency in the code because it forces us to scan the network in the CreateSandbox path, which is critical for starting the VM as quick as possible.
|
||||
|
||||
|
||||
## CNI
|
||||
|
||||

|
||||
|
||||
__Runtime network setup with CNI__
|
||||
|
||||
1. Create the network namespace ([code](https://github.com/containers/virtcontainers/blob/0.5.0/cni.go#L64-L76))
|
||||
|
||||
2. Get CNI plugin information ([code](https://github.com/containers/virtcontainers/blob/0.5.0/cni.go#L29-L32))
|
||||
|
||||
3. Start the plugin (providing previously created netns) to add a network described into /etc/cni/net.d/ directory. At that time, the CNI plugin will create the cni0 network interface and a veth pair between the host and the created netns. It links cni0 to the veth pair before to exit. ([code](https://github.com/containers/virtcontainers/blob/0.5.0/cni.go#L34-L45))
|
||||
|
||||
4. Create bridge, TAP, and link all together with network interface previously created ([code](https://github.com/containers/virtcontainers/blob/0.5.0/network.go#L123-L205))
|
||||
|
||||
5. Start VM inside the netns and start the container ([code](https://github.com/containers/virtcontainers/blob/0.5.0/api.go#L66-L70))
|
||||
|
||||
# Storage
|
||||
|
||||
Container workloads are shared with the virtualized environment through 9pfs.
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 23 KiB |
Loading…
Reference in New Issue
Block a user