mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Adjust name of Podman CNI network bridge
Both Podman and CRI-O set up CNI bridges with the name 'cni0'. If both our CNI conflist and the CRI-O conflist are installed, whoever runs first will win - that is, they will configure the bridge, and everyone will use it. Problem: the CRI-O CNI config conflicts with ours and results in containers with no networking. Solution: rename our bridge so we don't conflict with CRI-O. At the same time, hit our IPAM configuration. The current version was an older format in danger of deprecation. The new format is documented at [1]. Finally, fix indentation for the entire file. [1] https://github.com/containernetworking/plugins/tree/master/plugins/ipam/host-local#example-configurations Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:

committed by
Matthew Heon

parent
59261cf014
commit
7b4102ce28
@ -2,28 +2,37 @@
|
|||||||
"cniVersion": "0.4.0",
|
"cniVersion": "0.4.0",
|
||||||
"name": "podman",
|
"name": "podman",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"type": "bridge",
|
"type": "bridge",
|
||||||
"bridge": "cni0",
|
"bridge": "cni-podman0",
|
||||||
"isGateway": true,
|
"isGateway": true,
|
||||||
"ipMasq": true,
|
"ipMasq": true,
|
||||||
"ipam": {
|
"ipam": {
|
||||||
"type": "host-local",
|
"type": "host-local",
|
||||||
"subnet": "10.88.0.0/16",
|
"routes": [
|
||||||
"routes": [
|
{
|
||||||
{ "dst": "0.0.0.0/0" }
|
"dst": "0.0.0.0/0"
|
||||||
]
|
}
|
||||||
}
|
],
|
||||||
},
|
"ranges": [
|
||||||
{
|
[
|
||||||
"type": "portmap",
|
{
|
||||||
"capabilities": {
|
"subnet": "10.88.0.0/16",
|
||||||
"portMappings": true
|
"gateway": "10.88.0.1"
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
]
|
||||||
"type": "firewall",
|
}
|
||||||
"backend": "iptables"
|
},
|
||||||
}
|
{
|
||||||
|
"type": "portmap",
|
||||||
|
"capabilities": {
|
||||||
|
"portMappings": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "firewall",
|
||||||
|
"backend": "iptables"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user