Skip to content
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

Document the resolv.conf handling for the default host-local IPAM #43

Open
radekg opened this issue Mar 24, 2021 · 0 comments
Open

Document the resolv.conf handling for the default host-local IPAM #43

radekg opened this issue Mar 24, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@radekg
Copy link
Member

radekg commented Mar 24, 2021

The user can specify a bridge specific resolv.conf file with custom nameservers configured: https://www.cni.dev/plugins/current/ipam/host-local/. Example:

{
  "ipam": {
		"type": "host-local",
		"subnet": "3ffe:ffff:0:01ff::/64",
		"rangeStart": "3ffe:ffff:0:01ff::0010",
		"rangeEnd": "3ffe:ffff:0:01ff::0020",
		"routes": [
			{ "dst": "3ffe:ffff:0:01ff::1/64" }
		],
		"resolvConf": "/etc/resolv.conf"
	}
}

The contents of this resolv.conf are passed to the VM so it is not necessary to handle resolv.conf in vminit. Document.

@radekg radekg added the documentation Improvements or additions to documentation label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant