Skip to content

How to add entry to coredns NodeHosts via ConfigMap coredns-custom. #11864

Closed Answered by brandond
TOTHT0MI asked this question in Q&A
Discussion options

You must be logged in to vote

Don't do this. NodeHosts is not meant to be used that way. It is managed by K3s and will only contain entries for cluster members.

Inject the hostname into the pods that need it via spec.hostAlias.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TOTHT0MI
Comment options

Answer selected by TOTHT0MI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants