Skip to content

Instantly share code, notes, and snippets.

@lalanikarim
Created May 25, 2023 15:05
Show Gist options
  • Save lalanikarim/5ef40d20d1dd92cbc83baab23bdec2a7 to your computer and use it in GitHub Desktop.
Save lalanikarim/5ef40d20d1dd92cbc83baab23bdec2a7 to your computer and use it in GitHub Desktop.
Podman dnsname plugin config to be stored in /etc/cni/net.d folder
{
"cniVersion": "0.4.0",
"name": "podman",
"plugins": [
{
"type": "bridge",
"Documentation": "/usr/share/doc/containernetworking-plugins/main_bridge.md",
"bridge": "cni-podman0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"Documentation": "/usr/share/doc/containernetworking-plugins/ipam_host-local.md",
"routes": [
{ "dst": "0.0.0.0/0" }
],
"ranges": [
[
{ "subnet": "10.89.0.0/16", "gateway": "10.89.0.1" }
]
]
}
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
},
{
"type": "portmap",
"Documentation": "/usr/share/doc/containernetworking-plugins/meta_portmap.md",
"capabilities": { "portMappings": true }
},
{
"type": "firewall",
"Documentation": "/usr/share/doc/containernetworking-plugins/meta_firewall.md",
"backend": "iptables"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment