dhcp plugin with hostname #10479
Unanswered
CosmicToast
asked this question in
Q&A
Replies: 3 comments 4 replies
-
@mccv1r0 Any ideas here? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I believe this works now with the following IPAM config: "ipam": {
"type": "dhcp",
"provide": [
{
"option": "host-name",
"fromArg": "K8S_POD_NAME"
}
]
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
When the backend is netavark the network configuration appears to be different with ipam_options, and driver:
I tried setting:
Which leads to Error reading network config file. Does this same functionality exist under netavark? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following conflist:
I'd normally expect the dhcp daemon to pass along all the things a typical dhcp client would, including hostname (in this case, the names of the containers). That would allow my external network's dhcp server to resolve it via dns.
As it is, it's being marked as
*
(i.e no hostname given).I know cni plugins (at least some of them) can know the container hostname, since that's how dnsname works.
Is this a conscious decision re: the cni plugin, or do I need to do something else?
Specifically: the goal is for ipam-dhcp to send the container's hostname to the dhcp server so it can be properly registered.
Network itself works fine from what I can tell, it's just not easily resolvable.
Beta Was this translation helpful? Give feedback.
All reactions