Skip to content

Proper way to rewrite custom DNS entries in Azure Kubernetes Service (AKS) #5122

Answered by chrisohaver
sgerace asked this question in Q&A
Discussion options

You must be logged in to vote

The execution order of plugins is not governed by the order of the plugins in the Corefile.

Plugins are executed in a predetermined order based on the order in plugin.cfg cemented at compile time. So, a rewrite can be added via a custom/*.override, which is imported into the default plugin serve block. Even though those plugins get inserted into the end of the plugin block, the execution order of the plugins is still as per plugin.cfg, and rewrite gets executed before kubernetes.

Therefore (unless I'm missing something) your proposed solution isn't really necessary. Negatively, it results in keeping two separate instances of the Kubernetes API informer in memory, which at scale would doub…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@sgerace
Comment options

@chrisohaver
Comment options

@sgerace
Comment options

@sgerace
Comment options

Answer selected by sgerace
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