dns-resolver

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

DNS Resolver

DNS resolver written in Go

Deployment

# 
make deploy

# 
make undeploy

Request

DNS
# testing locally
dig @localhost -p 5354 example19.com A

# test from inside the cluster
kubectl run -it --image=nicolaka/netshoot --rm=true --restart=Never tshoot -- bash
dig @dns-resolver-dns.mentorship -p 5354 example19.com

# test from outside the cluster via service loadbalancer
ip=$(k get svc/dns-resolver-dns -n mentorship | awk '{print $4}' | grep -v EXTERNAL-IP | cut -d, -f2 )
dig @$ip -p 5354 example19.com
Health endpoints
# testing locally
curl localhost:8080/healthz/liveness
curl localhost:8080/healthz/readiness

# test from inside the cluster
kubectl run -it --image=nicolaka/netshoot --rm=true --restart=Never tshoot -- bash
curl dns-resolver-server-http/healthz/readiness

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL