Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kmesh-net/kmesh-dns-plugin

kmesh dns plugin
https://github.com/kmesh-net/kmesh-dns-plugin

Last synced: about 1 month ago
JSON representation

kmesh dns plugin

Awesome Lists containing this project

README

        

# kmesh-coredns-plugin

The plugin runs as a standlone server in the cluster, serving DNS A records over gRPC to CoreDNS.

# Quick start

## Step1: Deploy Kmesh coredns plugin
```sh
kubectl apply -f manifest/deploy.yaml
```

## Step2: Forward coreDNS to Kmesh coredns plugin
```sh
kubectl edit cm coredns -n kube-system
```

```yaml
apiVersion: v1
data:
Corefile: |
.:53 {
errors
health {
lameduck 5s
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus :9153
forward . /etc/resolv.conf {
max_concurrent 1000
}
cache 30
loop
reload
loadbalance
}
// put the domain suffix here
// e.g. for consul service
consul.local:53 {
errors
cache 30
// the KMESHPLUGIN_IP is the kmesh coredns plugin service clusterip
forward . $KMESHPLUGIN_IP:15053
}
// e.g. for nacos service
nacos:53 {
errors
cache 30
// the KMESHPLUGIN_IP is the kmesh coredns plugin service clusterip
forward . $KMESHPLUGIN_IP:15053
}
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
```