Open Dentrax opened 2 years ago
Do you care to kick this off with a PR?
Do you care to kick this off with a PR?
Not making any promises but I can get to it if you show me what should I do. 🙏
@flouthoc Please Help @Dentrax
@Dentrax If you are interested in trying out netavark
with podman
I can help you with that. That should give you enough context how to play around with netavark.
But overall even though if you don't wanna try it out yourself then also you could help us with documenting some top level stuff.
Netavark is a cli tool which sets ups networking for containers especially podman but it can do it for other container managers as well if right config is specified.
I'd suggest if you wanna start documenting then netavark config is something which could be documented so other tools could also use it. Most of the standard config is here: https://github.com/containers/netavark/tree/main/src/test/config
You could also try documenting entry points for netavark https://github.com/containers/netavark/tree/main/src/commands so other tools could use it.
And reading tests should give you more idea: https://github.com/containers/netavark/tree/main/test
I'd suggest whenever you run netavark without podman do it on a VM
I'll also tag others who could help @mheon @Luap99 @baude
I would also like to pitch in the docs, is there any initial progress @Dentrax I can help in some parts if you've already started
Hey @afro-coder, I couldn't find a free time to get this into yet, but if you want to start, go ahead! I don't want to block you. 💐
Sure @Dentrax, I'll get started on this and try to do some basic docs.
Not related to its architecture but I'm not even sure how I can switch in my Podman installations to netavark? Is this documented anywhere?
the absolute easiest way, assuming netavark and aardvark-dens are installed, is to run podman syystem reset
. HOWEVER, this will delete all of your images and containers from storage.
So is it part of any Podman installation? :thinking:
Doesn't it need any change in /usr/share/containers/containers.conf
or so?
How can I see that netavark
is used?
It's an optional dependency on most distros (we recommend that Podman packages require one of CNI or Netavark, with Netavark recommended).
Containers.conf can force the network backend to Netavark but is not necessary if a podman system reset
is done as Netavark is the default.
podman info
has a networkBackend
field that should show "cni" or "netavark" to identify which is in use.
Be aware that you get an error if you reset podman and the $HOME/.config/cni folder exists.
You need to manually remove it to switch podman to netavark.
Containers.conf can force the network backend to Netavark but is not necessary if a
podman system reset
is done as Netavark is the default.
podman info
has anetworkBackend
field that should show "cni" or "netavark" to identify which is in use.
Is this something that was introduced with Podman 4?
Because that field seem to be missing in Ubuntu 22.04 LTS (Linux 5.15.0-37
)
Yes, this is only available in Podman 4.0 and up. Netavark in general is only supported from Podman 4.0 and up, so earlier versions don't need the field; they're always on CNI.
Ah okay. This explains everything. I missed this bit. It doesn't seem to be documented in the Readme.
In that case I'll have to wait until I found a way to install Podman 4.0 on Ubuntu 22.04. Thank you for the clarification!
It would be great to see how does this project work and how overall architecture is designed! Maybe adding some arch.md or some diagrams in the ./docs folder would be nice to have. 🙏