You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework fanout dns chain element to force work with context instead of function.
Rework dnscontext.NetworkServiceClient => create resolvconf dns chain element. That simply edits resolv.conf file by analogous with dnscontext.NetworkServiceClient
Rework dnscontext.NetworkServiceClient => create new dnsconfigs dns chain element via shared map. That adds into context fanout list and searches.
create new searches dns chain element that adds to question sub-domains.
create new cache dns chain element that stores answers for TTL period.
Context
https://github.com/networkservicemesh/deployments-k8s/tree/release/v1.4.0/examples/features/dns
Description
Currently we're using the coredns side car as a proxy dns server that fanounts dns queries to different dns worlds (in particular k8s dns)
We're using WH to inject this sidecar for nsm clients
https://github.com/networkservicemesh/cmd-admission-webhook-k8s/blob/main/main.go#L226-L242
Problems
1/1
is turning to3/3
when we add nsm annotation in k8s (we could reduce it to2/2
where 1/2 - workload, 2/2 nsc)Solution
Note: if we'll need to get a special Coredns functionally we could simply imprort the plugin and adapt it for our dns server. https://github.com/networkservicemesh/sdk/blob/main/pkg/tools/dnsutils/adapt/handler.go#L17
Potential dns chain elements could be
Some of chain elements alerady done see at https://github.com/networkservicemesh/sdk/tree/main/pkg/tools/dnsutils
The text was updated successfully, but these errors were encountered: