Kubernetes Private DNS controller
1.8K
Private DNS controller provides DNS records across Kubernetes clusters using cloud provider private DNS service. Useful for cases where you need DNS for pod-to-pod traffic between different clusters.
Currently only Google CloudDNS is supported.
Supported records:
Example DNS resource:
apiVersion: "tanelmae.com/v1"
kind: PrivateDNS
metadata:
name: nats
namespace: supernats
spec:
label: app=nats
domain: gcp.global
subdomain: true
service: true
srv-port: route
srv-protocol: tcp
This would create DNS records for pods with label "app=nats" in the supernats namespace. If it is on a cluster called "sauna" in europe-north1-a and NATS is run as statefulset called "nats-cluster":
nats-0.nats-cluster.sauna.europe-north1-a.gcp.global<ip>.in-addr.arpa. to allow resolving DNS addresses from IPsnats-cluster.sauna.europe-north1-a.gcp.global_<port-name>._tcp.nats-cluster.sauna.europe-north1-a.gcp.globalTODO:
Content type
Image
Digest
Size
7.7 MB
Last updated
about 6 years ago
docker pull tanelmae/private-dns